/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_stdlib.c | 82 * same formatting conventions as sprintf(buf, "%+.*e", precision, d). The 87 doubletos(double d, int precision, char expchr) argument 94 p = econvert(d, precision + 1, &decpt, &sign, digits); 99 * Same as doubletos(), but for long doubles (quad precision floating point). 102 longdoubletos(long double *ldp, int precision, char expchr) argument 109 p = qeconvert(ldp, precision + 1, &decpt, &sign, digits);
|
/illumos-gate/usr/src/test/libc-tests/tests/fpround/ |
H A D | fpround_test.c | 36 run_one(test_t t, int i, int j, int precision, boolean_t verbose) argument 44 /* first get max precision for control check */ 47 test_failed(t, "Max precision snprintf() " 51 /* then get specific precision */ 52 status = snprintf(buffer, size, "%+-#.*f", precision, val); 54 test_failed(t, "Specific precision snprintf() " 55 "(i = %d, j = %d, precision = %d) returned %d\n", i, j, 56 precision, status); 66 (void) printf("failure:f precision %d " 68 precision, 79 int status, i, j, precision; local [all...] |
/illumos-gate/usr/src/cmd/audio/utilities/ |
H A D | hdr_misc.c | 122 audio_secs_to_str(double sec, char *str, int precision) argument 135 /* Limit precision arg to reasonable value */ 136 if ((precision > 10) || (precision < 0)) 137 precision = 10; 144 /* Round off within precision to avoid -.01 printing as -0:00 */ 145 (void) sprintf(buf, "%.*f", precision, sec); 151 /* Round off within precision to avoid 1:59.999 printing as 1:60.00 */ 154 (void) sprintf(buf, "%.*f", precision, x); 179 (void) sprintf(p, "%.*f", precision, se [all...] |
/illumos-gate/usr/src/lib/libbc/libc/gen/common/ |
H A D | _times_power.c | 72 * precision: Number of bits of precision ultimately required 73 * (mult=10) or number of digits of precision ultimately 89 * if precision is < 0, then -pfb->bexponent/{4 or 16} digits are discarded 93 _big_float_times_power(_big_float *pbf, int mult, int n, int precision, argument 102 if (precision >= 0) 105 precision = -precision; 124 needed_precision = 2 + (precision + 1) / 4; /* Precision is in base 143 needed_precision = 2 + (precision [all...] |
/illumos-gate/usr/src/lib/libc/port/fp/ |
H A D | __x_power.c | 218 * is ten, *pbf is assumed to be base 2**16. precision specifies 235 __big_float_times_power(_big_float *pbf, int mult, int n, int precision, argument 266 * Convert precision (base ten digits) to needed_precision 270 needed_precision = 2 + (precision >> 2); 316 needed_precision = 2 + (precision >> 4);
|
/illumos-gate/usr/src/cmd/printf/ |
H A D | printf.c | 59 (void) asprintf(&b, f, fieldwidth, precision, func); \ 63 (void) asprintf(&b, f, precision, func); \ 121 * width or precision is a '*'; if it is, gather up value. Note, 179 int fieldwidth, haveprec, havewidth, mod_ldbl, precision; local 254 /* skip to possible '.', get following precision */ 262 /* precision present? */ 288 if (getint(&precision)) 318 * be used to gain extra range and precision, while omitting
|
/illumos-gate/usr/src/cmd/backup/restore/ |
H A D | interactive.c | 849 static int precision = 0; local 857 if (precision == 0) { 859 precision++; 860 if (sizeof (fmtres) < (unsigned)(precision + 2)) { 863 (precision + 2), sizeof (fmtres)); 868 precision, fp->fnum);
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | timex.h | 61 * used by the PLL. They are chosen to allow the greatest precision 228 int32_t precision; /* clock precision (us) (ro) */ member in struct:timex 255 extern int32_t time_precision; /* clock precision (us) */
|
H A D | audioio.h | 56 uint_t precision; /* bit-width of each sample */ member in struct:audio_prinfo 152 * Generic minimum/maximum limits for sample precision
|
/illumos-gate/usr/src/lib/libsqlite/src/ |
H A D | printf.c | 42 ** * The %c field now accepts a precision. The character output 43 ** is repeated by the number of times the precision specifies. 203 int precision; /* Precision of the current field */ local 283 /* Get the precision */ 285 precision = 0; 288 precision = va_arg(ap,int); 289 if( precision<0 ) precision = -precision; 293 precision [all...] |
/illumos-gate/usr/src/uts/common/io/usb/clients/audio/usb_as/ |
H A D | usb_as.c | 749 * Matches channel, encoding and precision and find out 1086 int precision; local 1093 precision = format->fmt_precision >> 3; 1126 count = bufsize / precision; 1129 bufsize / precision)) == 0) { 1158 bufsize = n = count * precision; 1171 n_pkts, bufsize, count * precision); 1542 int precision; local 1560 precision = format->fmt_precision >> 3; 1585 precision); [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | ntp.h | 295 int precision:8; member in struct:ntpdata 364 short precision; /* receive */ member in struct:ntp_peer 399 short precision; /* system */ member in struct:sysdata 429 int precision:8; member in struct:clockinfo
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | clock.c | 97 * high-precision avenrun values. These are needed to make the 128 * in cases where a precision clock counter or external clock is 144 int32_t time_precision = 1; /* clock precision (us) */ 428 * This section marks the beginning of the precision-kernel 451 * End of precision-kernel code fragment which is processed 527 const int precision = 100; local 548 load = (precision * intrused) / maxnsec; 549 ASSERT(load >= 0 && load < precision); 641 * Beginning of precision-kernel code fragment executed 766 * End of precision kerne [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/mdnsd/ |
H A D | DNSCommon.c | 4035 unsigned int precision; member in struct:mDNSprintf_format 4090 if (c == '.') // decode precision 4093 { F.precision = va_arg(arg, unsigned int); c = *++fmt; } 4095 F.precision = (10 * F.precision) + (c - '0'); 4124 F.precision = F.fieldWidth; 4125 if (F.sign) --F.precision; 4127 if (F.precision < 1) F.precision = 1; 4129 if (F.precision > mDNS_VACB_Siz [all...] |