HomeSort by: relevance | last modified time | path
    Searched refs:maxval (Results 1 - 16 of 16) sorted by relevancy

  /src/lib/libc/stdlib/
strtonum.c 49 strtonum(const char *nptr, long long minval, long long maxval,
60 if (minval > maxval)
63 rv = (long long)strtoi(nptr, &eptr, 10, minval, maxval, &e);
75 *errstr = rv == maxval ? "too large" : "too small";
  /src/usr.bin/m4/lib/
strtonum.c 33 strtonum(const char *numstr, long long minval, long long maxval,
36 strtonum(const char *numstr, long long minval, long long maxval,
54 if (minval > maxval)
62 else if ((ll == LLONG_MAX && errno == ERANGE) || ll > maxval)
  /src/usr.bin/cut/
cut.c 150 static size_t autostart, autostop, maxval; variable in typeref:typename:size_t
206 if (maxval < stop)
207 maxval = stop;
213 if (autostop && maxval > autostop)
214 maxval = autostop;
248 if (col < maxval && !positions[1 + col]) {
256 while (i < col + clen && i < maxval &&
260 for (; i < col + clen && i < maxval; i++)
271 if ((i >= maxval && !autostop) ||
272 (i < maxval && !positions[1 + i]))
    [all...]
x_cut.c 71 for (col = maxval; col; --col) {
  /src/sys/arch/powerpc/tools/chrpicon/ppmtochrpicon/
ppmtochrpicon.c 65 pixval maxval; local in function:main
80 pixels = ppm_readppm(ifp, &img->width, &img->height, &maxval);
82 if (maxval != 255)
84 "PPM files (maxval = 255)");
  /src/sys/arch/hpcarm/dev/
j720lcd.c 133 const int maxval = 255; local in function:j720lcd_param
141 *(int *)msg = maxval;
163 data[1] = maxval - *(int *)msg;
173 data[1] = maxval - *(int *)msg;
198 *(int *)msg = maxval - data[1];
  /src/sys/arch/powerpc/tools/chrpicon/chrpicontoppm/
chrpicontoppm.c 71 pixval maxval = 255; local in function:main
98 ppm_writeppminit(stdout, img->width, img->height, maxval, PLAIN_PPM);
124 ppm_writeppmrow(stdout, pixelrow, img->width, maxval, PLAIN_PPM);
  /src/games/arithmetic/
arithmetic.c 318 * Select a random value from 0 to maxval - 1 for operand `operand' (0 or 1)
324 getrandom(int maxval, int op, int operand)
330 value = random() % (maxval + penalty[op][operand]);
333 * 0 to maxval - 1 is a number to be used directly; bigger values
336 if (value < maxval)
338 value -= maxval;
  /src/lib/libc/citrus/modules/
citrus_mapper_zone.c 212 check_rowcol(struct _zone *z, int32_t ofs, uint32_t maxval)
216 if (maxval != 0 && z->z_end >= maxval)
220 if (maxval == 0) {
228 remain = maxval - z->z_end;
  /src/sys/arch/zaurus/dev/
lcdctl.c 215 int maxval = sc->sc_nbacklighttbl - 1; local in function:lcdctl_set_brightness
219 else if (newval > maxval)
220 newval = maxval;
  /src/sys/dev/i2c/
es8316ac.c 181 uint8_t maxval; member in struct:escodec_mixer
223 .maxval = 0xc0,
279 .maxval = 0x4,
362 if (mix->maxval != 0 && nvol > mix->maxval)
363 nvol = mix->maxval;
  /src/sys/dev/usb/
uaudio.c 113 int minval, maxval, resval; member in struct:range
713 r->maxval = 1;
724 r->maxval = uaudio_signext(mc->type,
729 mc->mul = r->maxval - r->minval;
749 mc->ranges[0].maxval = 0;
760 uint32_t minval, maxval, resval; local in function:uaudio_mixer_add_ctl
764 maxval = *p++;
770 maxval = p[0] | p[1] << 8;
778 maxval = p[0] | p[1] << 8 | p[2] << 16;
787 maxval = p[0] | p[1] << 8
    [all...]
  /src/sbin/fdisk/
fdisk.c 2839 decimal(const char *prompt, int64_t dflt, int flags, int64_t minval, int64_t maxval)
2849 prompt, SEC_TO_CYL(minval), SEC_TO_CYL(maxval),
2853 prompt, minval, maxval, dflt);
2864 return maxval;
2906 if (acc >= minval && acc <= maxval)
2908 printf("%" PRId64 " is not between %" PRId64 " and %" PRId64 ".\n", acc, minval, maxval);
  /src/lib/libc/time/
localtime.c 389 int_fast32_t maxval = halfmaxval - 1 + halfmaxval; local in function:detzcode
390 int_fast32_t minval = -1 - maxval;
412 int_fast64_t maxval = halfmaxval - 1 + halfmaxval; local in function:detzcode64
413 int_fast64_t minval = -TWOS_COMPLEMENT(int_fast64_t) - maxval;
  /src/sys/netinet/
ip_output.c 1721 ip_getoptval(const struct sockopt *sopt, u_int8_t *val, u_int maxval)
1747 if (tval > maxval)
  /src/sys/dev/audio/
audio.c 5722 aint2_t maxval; local in function:audio_pmixer_agc
5733 maxval = AINT_T_MAX;
5738 if (val > maxval)
5739 maxval = val;
5745 over_plus = maxval - AINT_T_MAX;
5750 newvol = (int)((aint2_t)AINT_T_MAX * 256 / maxval);

Completed in 29 milliseconds