/freebsd/lib/libc/gdtoa/ |
H A D | _hldtoa.c | 75 __hldtoa(long double e, const char *xdigs, int ndigits, int *decpt, int *sign, in __hldtoa() argument 117 if (ndigits == 0) /* dtoa() compatibility */ in __hldtoa() 118 ndigits = 1; in __hldtoa() 124 bufsize = (ndigits > 0) ? ndigits : SIGFIGS; in __hldtoa() 128 if (SIGFIGS > ndigits && ndigits > 0) { in __hldtoa() 130 int offset = 4 * ndigits + LDBL_MAX_EXP - 4 - LDBL_MANT_DIG; in __hldtoa() 154 if (ndigits < 0) { in __hldtoa() 155 for (ndigits = SIGFIGS; s0[ndigits - 1] == '0'; ndigits--) in __hldtoa() 159 s = s0 + ndigits; in __hldtoa() 169 __hldtoa(long double e, const char *xdigs, int ndigits, int *decpt, int *sign, in __hldtoa() argument [all …]
|
H A D | _hdtoa.c | 71 __hdtoa(double d, const char *xdigs, int ndigits, int *decpt, int *sign, in __hdtoa() argument 103 if (ndigits == 0) /* dtoa() compatibility */ in __hdtoa() 104 ndigits = 1; in __hdtoa() 110 bufsize = (ndigits > 0) ? ndigits : SIGFIGS; in __hdtoa() 114 if (SIGFIGS > ndigits && ndigits > 0) { in __hdtoa() 116 int offset = 4 * ndigits + DBL_MAX_EXP - 4 - DBL_MANT_DIG; in __hdtoa() 133 if (ndigits < 0) { in __hdtoa() 134 for (ndigits = SIGFIGS; s0[ndigits - 1] == '0'; ndigits--) in __hdtoa() 138 s = s0 + ndigits; in __hdtoa()
|
H A D | _ldtoa.c | 46 __ldtoa(long double *ld, int mode, int ndigits, int *decpt, int *sign, in __ldtoa() argument 103 ret = gdtoa(&fpi, be, vbits, &kind, mode, ndigits, decpt, rve); in __ldtoa()
|
/freebsd/contrib/gdtoa/ |
H A D | dtoa.c | 78 (d0, mode, ndigits, decpt, sign, rve) in dtoa() argument 79 double d0; int mode, ndigits, *decpt, *sign; char **rve; in dtoa() 81 (double d0, int mode, int ndigits, int *decpt, int *sign, char **rve) 307 ndigits = 0; 313 if (ndigits <= 0) 314 ndigits = 1; 315 ilim = ilim1 = i = ndigits; 321 i = ndigits + k + 1; 441 if (ndigits < 0 && ilim <= 0) { 598 k = -1 - ndigits;
|
H A D | gdtoa.c | 114 (fpi, be, bits, kindp, mode, ndigits, decpt, rve) in gdtoa() argument 116 int *kindp, mode, ndigits, *decpt; char **rve; 118 (FPI *fpi, int be, ULong *bits, int *kindp, int mode, int ndigits, int *decpt, char **rve) 296 ndigits = 0; 302 if (ndigits <= 0) 303 ndigits = 1; 304 ilim = ilim1 = i = ndigits; 310 i = ndigits + k + 1; 447 if (ndigits < 0 && ilim <= 0) { 594 k = -1 - ndigits;
|
H A D | gdtoa.h | 106 extern char* dtoa ANSI((double d, int mode, int ndigits, int *decpt, 109 int mode, int ndigits, int *decpt, char **rve));
|
H A D | gdtoaimp.h | 612 extern char *dtoa ANSI((double d, int mode, int ndigits, 616 int mode, int ndigits, int *decpt, char **rve));
|
H A D | changes | 2 dtoa.c: adjust dtoa to allow negative ndigits for modes 3,5,7,9 4 d (to be converted) satisfies 10^-(ndigits+1) <= |d| < 10^-ndigits , 7 the result is empty (i.e., when |d| <= 5 * 10^-ndigits). 51 value when, e.g., mode = 2 or 4 and ndigits = 24 (16 for 16-bit ints). 494 gdtoa/gdtoa.c: trim trailing zeros in a missed case (e.g., ndigits = 6 671 dtoa.c, gdtoa/gdtoa.c: fix a glith with ndigits with mode = 4 at
|
H A D | printf.c0 | 118 …typedef char *(*pgdtoa) ANSI((FPI*, int be, ULong *bits, int *kind, int mode, int ndigits, int *de…
|
/freebsd/sys/dev/bhnd/nvram/ |
H A D | bhnd_nvram_subr.c | 715 size_t ndigits; in bhnd_nvram_parse_int() local 734 ndigits = 0; in bhnd_nvram_parse_int() 887 ndigits++; in bhnd_nvram_parse_int() 903 if (ndigits == 0) in bhnd_nvram_parse_int()
|
H A D | bhnd_nvram_value_fmts.c | 970 size_t nbytes, ndigits; in bhnd_nvram_ident_num_string() local 973 ndigits = 0; in bhnd_nvram_ident_num_string() 1036 ndigits++; in bhnd_nvram_ident_num_string() 1040 if (ndigits == 0) in bhnd_nvram_ident_num_string()
|
/freebsd/crypto/openssh/openbsd-compat/ |
H A D | fmt_scaled.c | 80 unsigned int i, ndigits = 0, fract_digits = 0; in scan_scaled() local 139 if (++ndigits >= MAX_DIGITS) { in scan_scaled()
|
/freebsd/lib/libc/stdio/ |
H A D | vfprintf.c | 94 grouping_init(struct grouping_state *gs, int ndigits, locale_t loc) in grouping_init() argument 104 gs->lead = ndigits; in grouping_init()
|
H A D | vfwprintf.c | 123 grouping_init(struct grouping_state *gs, int ndigits, locale_t locale) in grouping_init() argument 130 gs->lead = ndigits; in grouping_init()
|
/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | regcomp.c | 779 int ndigits = 0; in p_count() local 783 ndigits++; in p_count() 786 REQUIRE(ndigits > 0 && count <= DUPMAX, REG_BADBR); in p_count()
|
/freebsd/contrib/nvi/regex/ |
H A D | regcomp.c | 668 int ndigits = 0; in p_count() local 672 ndigits++; in p_count() 675 (void)REQUIRE(ndigits > 0 && count <= DUPMAX, REG_BADBR); in p_count()
|
/freebsd/lib/libc/regex/ |
H A D | regcomp.c | 1004 int ndigits = 0; in p_count() local 1008 ndigits++; in p_count() 1011 (void)REQUIRE(ndigits > 0 && count <= DUPMAX, REG_BADBR); in p_count()
|