Home
last modified time | relevance | path

Searched refs:reps (Results 1 – 25 of 94) sorted by relevance

1234

/netbsd-src/usr.bin/jot/
H A Djot.c71 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 Dobprntffuns.c58 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 Dprintffuns.c56 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 Dasprntffuns.c54 __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 Dsprintffuns.c72 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 Dsnprntffuns.c127 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 Dt-cong_2exp.c109 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 Dt-divis.c115 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 Dt-nextprime.c36 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 Dt-perfsqr.c89 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 Dt-pow.c160 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 Dt-powm.c52 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 Dt-lucm.c45 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 Ddive_ui.c31 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 Dlzma_encoder.c64 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 Dlzma_encoder_optimum_normal.c302 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 Dt-set.c43 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 Dt-eq.c100 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 Dspeed.h112 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 Dt-mul.c54 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 Dt-get_d.c48 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 Dt-cmp.c54 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 Dmillerrabin.c64 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 Dcsplit.c90 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 Dparse.c121 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()

1234