| /netbsd-src/usr.bin/jot/ |
| H A D | jot.c | 71 static long reps = REPS_DEF; variable 119 for (i = 1; i <= reps || reps == 0; i++) in main() 120 putdata(random() * x + begin, reps - i); in main() 129 for (i = 1; i <= reps || reps == 0; i++, x += step) in main() 130 putdata(x, reps - i); in main() 216 reps = strtoul(argv[0], &ep, 0); in getargs() 217 if (*ep != 0 || reps < 0) in getargs() 256 reps = 0; /* ie infinite */ in getargs() 258 reps = (ender - begin + step) / step; in getargs() 259 if (reps <= 0) in getargs() [all …]
|
| /netbsd-src/external/lgpl3/gmp/dist/printf/ |
| H A D | obprntffuns.c | 58 gmp_obstack_reps (struct obstack *ob, int c, int reps) in gmp_obstack_reps() argument 60 obstack_blank (ob, reps); in gmp_obstack_reps() 61 memset ((char *) obstack_next_free(ob) - reps, c, reps); in gmp_obstack_reps() 62 return reps; in gmp_obstack_reps()
|
| H A D | printffuns.c | 56 gmp_fprintf_reps (FILE *fp, int c, int reps) in gmp_fprintf_reps() argument 60 ASSERT (reps >= 0); in gmp_fprintf_reps() 62 memset (buf, c, MIN (reps, sizeof (buf))); in gmp_fprintf_reps() 63 for (i = reps; i > 0; i -= sizeof (buf)) in gmp_fprintf_reps() 72 return reps; in gmp_fprintf_reps()
|
| H A D | asprntffuns.c | 54 __gmp_asprintf_reps (struct gmp_asprintf_t *d, int c, int reps) in __gmp_asprintf_reps() argument 56 GMP_ASPRINTF_T_NEED (d, reps); in __gmp_asprintf_reps() 57 memset (d->buf + d->size, c, reps); in __gmp_asprintf_reps() 58 d->size += reps; in __gmp_asprintf_reps() 59 return reps; in __gmp_asprintf_reps()
|
| H A D | sprintffuns.c | 72 gmp_sprintf_reps (char **bufp, int c, int reps) in gmp_sprintf_reps() argument 75 ASSERT (reps >= 0); in gmp_sprintf_reps() 76 *bufp = buf + reps; in gmp_sprintf_reps() 77 memset (buf, c, reps); in gmp_sprintf_reps() 78 return reps; in gmp_sprintf_reps()
|
| H A D | snprntffuns.c | 127 gmp_snprintf_reps (struct gmp_snprintf_t *d, int c, int reps) in gmp_snprintf_reps() argument 131 ASSERT (reps >= 0); in gmp_snprintf_reps() 136 n = MIN (d->size-1, reps); in gmp_snprintf_reps() 141 return reps; in gmp_snprintf_reps()
|
| /netbsd-src/external/lgpl3/gmp/dist/tests/mpz/ |
| H A D | t-cong_2exp.c | 109 check_random (int reps) in check_random() argument 121 for (i = 0; i < reps; i++) in check_random() 157 check_random_bits (int reps) in check_random_bits() argument 167 for (i = 0; i < reps; i++) in check_random_bits() 196 int reps = 5000; in main() local 199 TESTS_REPS (reps, argv, argc); in main() 202 check_random (reps); in main() 203 check_random_bits (reps); in main()
|
| H A D | t-divis.c | 115 check_random (int reps) in check_random() argument 126 for (i = 0; i < reps; i++) in check_random() 155 int reps = 100; in main() local 159 TESTS_REPS (reps, argv, argc); in main() 162 check_random (reps); in main()
|
| H A D | t-nextprime.c | 36 run (const char *start, int reps, const char *end, short diffs[]) in run() argument 44 for (i = 0; i < reps; i++) in run() 80 int reps = 20; in main() local 109 TESTS_REPS (reps, argv, argc); in main() 111 for (i = 0; i < reps; i++) in main()
|
| H A D | t-perfsqr.c | 89 check_sqrt (int reps) in check_sqrt() argument 105 for (i = 0; i < reps; i++) in check_sqrt() 141 int reps = 200000; in main() local 147 reps = atoi (argv[1]); in main() 150 check_sqrt (reps); in main()
|
| H A D | t-pow.c | 160 check_random (int reps) in check_random() argument 171 for (i = 0; i < reps; i++) in check_random() 200 int reps = 5000; in main() local 210 reps = atoi (argv[1]); in main() 213 check_random (reps); in main()
|
| H A D | t-powm.c | 52 int reps = 1000; in main() local 59 TESTS_REPS (reps, argv, argc); in main() 76 reps += reps >> 3; in main() 77 for (i = 0; i < reps || ! allsizes_seen (allsizes); i++) in main()
|
| H A D | t-lucm.c | 45 int reps = 1000; in main() local 52 TESTS_REPS (reps, argv, argc); in main() 66 for (i = 0; i < reps; i++) in main() 106 if (res && ++reps) in main()
|
| H A D | dive_ui.c | 31 int reps = 500000; in check_random() local 37 reps = atoi (argv[1]); in check_random() 43 for (i = 0; i < reps; i++) in check_random()
|
| /netbsd-src/external/public-domain/xz/dist/src/liblzma/lzma/ |
| H A D | lzma_encoder.c | 64 mf->read_pos - coder->reps[0] - 1 in literal() 177 coder->reps[3] = coder->reps[2]; in match() 178 coder->reps[2] = coder->reps[1]; in match() 179 coder->reps[1] = coder->reps[0]; in match() 180 coder->reps[0] = distance; in match() 199 const uint32_t distance = coder->reps[rep]; in rep_match() 210 coder->reps[3] = coder->reps[2]; in rep_match() 212 coder->reps[2] = coder->reps[1]; in rep_match() 215 coder->reps[1] = coder->reps[0]; in rep_match() 216 coder->reps[0] = distance; in rep_match() [all …]
|
| H A D | lzma_encoder_optimum_normal.c | 302 const uint8_t *const buf_back = buf - coder->reps[i] - 1; in helper1() 331 const uint8_t match_byte = *(buf - coder->reps[0] - 1); in helper1() 379 coder->opts[0].backs[i] = coder->reps[i]; in helper1() 444 helper2(lzma_lzma1_encoder *coder, uint32_t *reps, const uint8_t *buf, in helper2() argument 495 reps[0] = coder->opts[pos_prev].backs[pos]; in helper2() 499 reps[i] = coder->opts[pos_prev].backs[i - 1]; in helper2() 502 reps[i] = coder->opts[pos_prev].backs[i]; in helper2() 505 reps[0] = pos - REPS; in helper2() 508 reps[i] = coder->opts[pos_prev].backs[i - 1]; in helper2() 515 coder->opts[cur].backs[i] = reps[i]; in helper2() [all …]
|
| /netbsd-src/external/lgpl3/gmp/dist/tests/mpf/ |
| H A D | t-set.c | 43 check_random (long reps) in check_random() argument 58 for (test = 0; test < reps; test++) in check_random() 102 long reps = 10000; in main() local 105 TESTS_REPS (reps, argv, argc); in main() 108 check_random (reps); in main()
|
| H A D | t-eq.c | 100 check_random (long reps) in check_random() argument 118 for (test = 0; test < reps; test++) in check_random() 205 long reps = 10000; in main() local 208 reps = strtol (argv[1], 0, 0); in main() 213 check_random (reps); in main()
|
| /netbsd-src/external/lgpl3/gmp/dist/tune/ |
| H A D | speed.h | 112 unsigned reps; /* how many times to run the routine */ member 648 i = s->reps; \ 681 i = s->reps; \ 709 i = s->reps; \ 738 i = s->reps; \ 786 i = s->reps; \ 842 i = s->reps; \ 904 i = s->reps; \ 939 i = s->reps; \ 1048 i = s->reps; \ [all …]
|
| /netbsd-src/external/lgpl3/gmp/dist/tests/mpn/ |
| H A D | t-mul.c | 54 int reps; in main() local 58 reps = 1; in main() 61 TESTS_REPS (reps, argv, argc); in main() 64 max_n = isqrt (reps * 25000); in main()
|
| /netbsd-src/external/lgpl3/gmp/dist/tests/mpq/ |
| H A D | t-get_d.c | 48 int reps = 100; in check_monotonic() local 55 reps = atoi (argv[1]); in check_monotonic() 65 for (i = 0; i < reps; i++) in check_monotonic() 172 int test, reps = 100000; in check_random() local 175 reps = 100 * atoi (argv[1]); in check_random() 181 for (test = 0; test < reps; test++) in check_random()
|
| H A D | t-cmp.c | 54 int reps = 10000; in main() local 61 reps = atoi (argv[1]); in main() 66 for (i = 0; i < reps; i++) in main()
|
| /netbsd-src/external/lgpl3/gmp/dist/mpz/ |
| H A D | millerrabin.c | 64 mpz_millerrabin (mpz_srcptr n, int reps) in mpz_millerrabin() argument 142 reps -= 24; in mpz_millerrabin() 143 if (reps > 0) in mpz_millerrabin() 158 } while (--reps > 0 && is_prime); in mpz_millerrabin()
|
| /netbsd-src/usr.bin/csplit/ |
| H A D | csplit.c | 90 static long reps; /* Number of repetitions for this pattern */ variable 184 reps = strtol(*argv + 1, &ep, 10); in main() 185 if (reps < 0 || *ep != '}' || errno != 0) in main() 189 reps = 0; in main() 194 while (reps-- != 0 && nfiles < maxfiles - 1); in main() 475 if (reps-- == 0) in do_lineno()
|
| /netbsd-src/usr.bin/hexdump/ |
| H A D | parse.c | 121 tfu->reps = 1; in add() 129 tfu->reps = atoi(savep); in add() 176 cursize += fu->bcnt * fu->reps; in size() 213 cursize += bcnt * fu->reps; in size() 455 fu->reps += (blocksize - fs->bcnt) / fu->bcnt; in rewrite() 456 if (fu->reps > 1) { in rewrite()
|