Home
last modified time | relevance | path

Searched refs:max (Results 1 – 25 of 471) sorted by relevance

12345678910>>...19

/mirbsd/src/gnu/usr.bin/perl/t/op/
Drand.t46 my($max, $min, $sum); # Characteristics of rand
50 $max = $min = rand(1);
70 $max = $n if $n > $max;
84 unless (ok( !$max <= 0 or $max >= (2 ** $randbits))) {# Just in case...
100 $off = log($max) / log(2); # log2
104 print "# max=[$max] min=[$min]\n";
117 unless (ok( !($min < 0 or $max >= 1) )) { # Slightly redundant...
119 print "# max too high\n" if $max >= 1;
210 my($max, $min);
211 $max = $min = rand(100);
[all …]
/mirbsd/src/gnu/usr.bin/perl/lib/Test/Harness/t/
Dtest-harness.t38 max => 5,
54 max => 5,
72 max => 5,
88 max => 5,
106 max => 5,
122 max => 3,
138 max => 5,
154 max => 1,
171 max => 10,
189 max => 10,
[all …]
Dstrap-analyze.t46 max => 2,
105 max => 10,
143 max => 5,
155 max => 0,
172 max => 0,
189 max => 4,
206 max => 10,
228 max => 4,
258 max => 4,
275 max => 4,
[all …]
Dstrap.t74 '1..2' => { max => 2 },
75 '1..1' => { max => 1 },
76 '1..0' => { max => 0,
79 '1..0 # Skipped: no leverage found' => { max => 0,
82 '1..4 # Skipped: no leverage found' => { max => 4,
85 '1..0 # skip skip skip because' => { max => 0,
88 '1..10 todo 2 4 10' => { max => 10,
94 '1..10 todo' => { max => 10 },
96 { max => 192,
/mirbsd/src/gnu/usr.bin/perl/lib/Test/
DHarness.pm245 return $tot->{bad} == 0 && ($tot->{max} || $tot->{skipped}) ? 1 : 0;
325 max => 0,
377 max => $results{max},
387 $tot{max} += $results{max};
396 if ($test{max} and $test{skipped} + $test{bonus}) {
404 elsif ( $test{max} ) {
419 if ($test{'next'} <= $test{max}) {
420 push @{$test{failed}}, $test{'next'}..$test{max};
425 foreach my $overrun ($test{max}+1..@$details) {
437 if (@{$test{failed}} and $test{max}) {
[all …]
/mirbsd/src/lib/libssl/src/crypto/bn/
Dbn_add.c110 int max,min; in BN_uadd() local
119 max=a->top; in BN_uadd()
122 if (bn_wexpand(r,max+1) == NULL) in BN_uadd()
125 r->top=max; in BN_uadd()
141 while (i < max) in BN_uadd()
151 if ((i >= max) && carry) in BN_uadd()
159 for (; i<max; i++) in BN_uadd()
170 int max,min; in BN_usub() local
186 max=a->top; in BN_usub()
188 if (bn_wexpand(r,max) == NULL) return(0); in BN_usub()
[all …]
Dbn_sqr.c67 int max,al; in BN_sqr() local
88 max=(al+al); in BN_sqr()
89 if (bn_wexpand(rr,max+1) == NULL) goto err; in BN_sqr()
131 if (bn_wexpand(tmp,max) == NULL) goto err; in BN_sqr()
136 if (bn_wexpand(tmp,max) == NULL) goto err; in BN_sqr()
141 rr->top=max; in BN_sqr()
143 if ((max > 0) && (rr->d[max-1] == 0)) rr->top--; in BN_sqr()
154 int i,j,max; in bn_sqr_normal() local
158 max=n*2; in bn_sqr_normal()
161 rp[0]=rp[max-1]=0; in bn_sqr_normal()
[all …]
/mirbsd/src/lib/libssl/src/crypto/bio/
Db_print.c185 int max; in _dopr() local
193 max = -1; in _dopr()
255 if (max < 0) in _dopr()
256 max = 0; in _dopr()
257 max = 10 * max + char_to_int(ch); in _dopr()
260 max = va_arg(args, int); in _dopr()
312 value, 10, min, max, flags); in _dopr()
339 min, max, flags); in _dopr()
347 fvalue, min, max, flags); in _dopr()
371 if (max < 0) { in _dopr()
[all …]
/mirbsd/src/lib/libdes/
Ddes_opts.c434 double d,tm[16],max=0; local
514 max=tm[0];
518 if (max < tm[1]) { max=tm[1]; max_idx=1; }
521 if (max < tm[2]) { max=tm[2]; max_idx=2; }
526 if (max < tm[3]) { max=tm[3]; max_idx=3; }
529 if (max < tm[4]) { max=tm[4]; max_idx=4; }
532 if (max < tm[5]) { max=tm[5]; max_idx=5; }
537 if (max < tm[6]) { max=tm[6]; max_idx=6; }
540 if (max < tm[7]) { max=tm[7]; max_idx=7; }
543 if (max < tm[8]) { max=tm[8]; max_idx=8; }
[all …]
/mirbsd/src/lib/libssl/src/crypto/des/
Ddes_opts.c422 double d,tm[16],max=0; in main() local
502 max=tm[0]; in main()
506 if (max < tm[1]) { max=tm[1]; max_idx=1; } in main()
509 if (max < tm[2]) { max=tm[2]; max_idx=2; } in main()
514 if (max < tm[3]) { max=tm[3]; max_idx=3; } in main()
517 if (max < tm[4]) { max=tm[4]; max_idx=4; } in main()
520 if (max < tm[5]) { max=tm[5]; max_idx=5; } in main()
525 if (max < tm[6]) { max=tm[6]; max_idx=6; } in main()
528 if (max < tm[7]) { max=tm[7]; max_idx=7; } in main()
531 if (max < tm[8]) { max=tm[8]; max_idx=8; } in main()
[all …]
/mirbsd/src/sys/dev/ic/
Dpt2254a.c42 pt2254a_encode_volume(u_int8_t *current, u_int8_t max) { in pt2254a_encode_volume() argument
55 if (*current > 0 && *current <= max / 3) { in pt2254a_encode_volume()
56 vol = PT2254A_MAX_ATTENUATION - (144 * (int)(*current) / max); in pt2254a_encode_volume()
57 } else if (*current > max / 3 && *current <= 2 * max / 3) { in pt2254a_encode_volume()
58 vol = 34 - (42 * (int)(*current) / max); in pt2254a_encode_volume()
59 } else if (*current > 2 * max / 3) { in pt2254a_encode_volume()
60 vol = 18 - (18 * (int)(*current) / max); in pt2254a_encode_volume()
65 steps = *current * PT2254A_MAX_ATTENUATION / max; in pt2254a_encode_volume()
66 *current = steps * max / PT2254A_MAX_ATTENUATION; in pt2254a_encode_volume()
/mirbsd/src/usr.bin/systat/
Dmbufs.c100 int i, j, max, index; in showmbufs() local
104 max = 0, index = -1; in showmbufs()
106 if (mb.m_mtypes[i] > max) { in showmbufs()
107 max = mb.m_mtypes[i]; in showmbufs()
110 if (max == 0) in showmbufs()
117 if (max > 60) { in showmbufs()
118 snprintf(buf, sizeof buf, " %d", max); in showmbufs()
119 max = 60; in showmbufs()
120 while (max--) in showmbufs()
124 while (max--) in showmbufs()
/mirbsd/src/lib/libc/gen/
Dgetbsize.c40 long n, max, mul, blocksize; in getbsize() local
59 max = MAXB / GB; in getbsize()
64 max = MAXB / KB; in getbsize()
69 max = MAXB / MB; in getbsize()
73 max = MAXB; in getbsize()
79 max = MAXB; in getbsize()
83 if (n > max) { in getbsize()
85 n = max; in getbsize()
/mirbsd/src/kern/z/
Dinftrees.c46 unsigned min, max; /* minimum and maximum code lengths */ local
118 for (max = MAXBITS; max >= 1; max--)
119 if (count[max] != 0) break;
120 if (root > max) root = max;
121 if (max == 0) { /* no symbols to code at all */
130 for (min = 1; min < max; min++)
141 if (left > 0 && (type == CODES || max != 1))
259 if (len == max) break;
275 while (curr + drop < max) {
/mirbsd/src/lib/libc/i18n/
Dmbsrtowcs.c37 mbsnrtowcs(wchar_t *pwcs, const char **s, size_t max, size_t n, mbstate_t *ps) in mbsnrtowcs() argument
39 #define max MB_CUR_MAX in mbsnrtowcs()
53 if (!max) { in mbsnrtowcs()
68 if (!max) in mbsnrtowcs()
73 if ((fr = optu8to16(&wc, src, max, ps)) == (size_t)-2) { in mbsnrtowcs()
74 src += max; in mbsnrtowcs()
80 max -= fr; in mbsnrtowcs()
/mirbsd/src/lib/libssl/src/crypto/bf/
Dbf_opts.c230 double d,tm[16],max=0; in main() local
286 max=tm[0]; in main()
290 if (max < tm[1]) { max=tm[1]; max_idx=1; } in main()
293 if (max < tm[2]) { max=tm[2]; max_idx=2; } in main()
299 max= -1.0; in main()
304 if (max < tm[i]) { max=tm[i]; j=i; } in main()
306 if (max < 0.0) break; in main()
309 max= -1.0; in main()
/mirbsd/src/gnu/usr.bin/perl/ext/List/Util/t/
Dmax.t18 use List::Util qw(max);
22 ok(defined &max, 'defined');
24 $v = max(1);
27 $v = max (1,2);
30 $v = max(2,1);
35 $v = max(@a);
/mirbsd/src/usr.bin/ssh/
Dkexgexc.c53 int min, max, nbits; in kexgex_client() local
63 max = DH_GRP_MAX; in kexgex_client()
69 max = DH_GRP_MAX; in kexgex_client()
73 packet_put_int(max); in kexgex_client()
76 min, nbits, max); in kexgex_client()
80 min, nbits, max); in kexgex_client()
95 if (BN_num_bits(p) < min || BN_num_bits(p) > max) in kexgex_client()
97 min, BN_num_bits(p), max); in kexgex_client()
164 min = max = -1; in kexgex_client()
174 min, nbits, max, in kexgex_client()
/mirbsd/src/lib/libssl/src/crypto/cast/
Dcastopts.c240 double d,tm[16],max=0; in main() local
296 max=tm[0]; in main()
300 if (max < tm[1]) { max=tm[1]; max_idx=1; } in main()
303 if (max < tm[2]) { max=tm[2]; max_idx=2; } in main()
309 max= -1.0; in main()
314 if (max < tm[i]) { max=tm[i]; j=i; } in main()
316 if (max < 0.0) break; in main()
319 max= -1.0; in main()
/mirbsd/src/gnu/usr.bin/perl/lib/Test/Harness/
DStraps.pm121 max => 0,
141 my $passed = ($totals{max} == 0 && defined $totals{skip_all}) ||
142 ($totals{max} && $totals{seen} &&
143 $totals{max} == $totals{seen} &&
144 $totals{max} == $totals{ok});
188 if ( ($point->number > 100_000) && ($point->number > ($self->{max}||100_000)) ) {
218 $totals->{max} += $self->{max};
551 if( my($max, $extra) = $line =~ /^1\.\.(\d+)(.*)/ ) {
552 $self->{max} = $max;
553 assert( $self->{max} >= 0, 'Max # of tests looks right' );
[all …]
/mirbsd/src/lib/libssl/src/crypto/asn1/
Dasn1_lib.c67 static int asn1_get_length(unsigned char **pp,int *inf,long *rl,int max);
93 long max=omax; in ASN1_get_object() local
95 if (!max) goto err; in ASN1_get_object()
102 if (--max == 0) goto err; in ASN1_get_object()
108 if (--max == 0) goto err; in ASN1_get_object()
114 if (--max == 0) goto err; in ASN1_get_object()
120 if (--max == 0) goto err; in ASN1_get_object()
124 if (!asn1_get_length(&p,&inf,plength,(int)max)) goto err; in ASN1_get_object()
146 static int asn1_get_length(unsigned char **pp, int *inf, long *rl, int max) in asn1_get_length() argument
152 if (max-- < 1) return(0); in asn1_get_length()
[all …]
/mirbsd/src/sbin/dhclient/
Dparse.c217 parse_numeric_aggregate(FILE *cfile, unsigned char *buf, int max, int separator, in parse_numeric_aggregate() argument
223 if (buf == NULL || max == 0) in parse_numeric_aggregate()
226 for (count = 0; count < max; count++, buf++) { in parse_numeric_aggregate()
239 if (count < max) { in parse_numeric_aggregate()
250 int negative = 0, tval, max; in convert_num() local
296 max = (1 << (size - 1)); in convert_num()
298 max = (1 << (size - 1)) + ((1 << (size - 1)) - 1); in convert_num()
299 if (val > max) { in convert_num()
303 negative ? "-" : "", val, max); in convert_num()
307 negative ? "-" : "", val, max); in convert_num()
[all …]
/mirbsd/src/gnu/usr.bin/perl/lib/
Dlook.pl14 local($max,$min,$mid,$_);
20 $max = int($size / $blksize);
21 while ($max - $min > 1) {
22 $mid = int(($max + $min) / 2);
33 $max = $mid;
/mirbsd/src/lib/libncurses/src/ncurses/base/
Dlib_color.c271 short min, max, t; in rgb2hls() local
275 if ((max = g > r ? g : r) < b) in rgb2hls()
276 max = b; in rgb2hls()
279 *l = (min + max) / 20; in rgb2hls()
281 if (min == max) { /* black, white and all shades of gray */ in rgb2hls()
289 *s = ((max - min) * 100) / (max + min); in rgb2hls()
291 *s = ((max - min) * 100) / (2000 - max - min); in rgb2hls()
294 if (r == max) in rgb2hls()
295 t = 120 + ((g - b) * 60) / (max - min); in rgb2hls()
296 else if (g == max) in rgb2hls()
[all …]
/mirbsd/src/usr.sbin/makefs/nbsrc/lib/libc/stdlib/
Dstrsuftoll.c125 long long min, long long max) in __weak_alias()
130 result = strsuftollx(desc, val, min, max, errbuf, sizeof(errbuf)); in __weak_alias()
143 long long min, long long max, char *ebuf, size_t ebuflen) in strsuftollx() argument
219 num *= strsuftollx(desc, expr + 1, min, max, ebuf, ebuflen); in strsuftollx()
240 if (num > max) { in strsuftollx()
244 desc, (long long)num, (long long)max); in strsuftollx()

12345678910>>...19