Home
last modified time | relevance | path

Searched refs:ndigits (Results 1 – 17 of 17) sorted by relevance

/freebsd/lib/libc/gdtoa/
H A D_hldtoa.c75 __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.c71 __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.c46 __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 Ddtoa.c78 (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 Dgdtoa.c114 (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 Dgdtoa.h106 extern char* dtoa ANSI((double d, int mode, int ndigits, int *decpt,
109 int mode, int ndigits, int *decpt, char **rve));
H A Dgdtoaimp.h612 extern char *dtoa ANSI((double d, int mode, int ndigits,
616 int mode, int ndigits, int *decpt, char **rve));
H A Dchanges2 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 Dprintf.c0118 …typedef char *(*pgdtoa) ANSI((FPI*, int be, ULong *bits, int *kind, int mode, int ndigits, int *de…
/freebsd/sys/dev/bhnd/nvram/
H A Dbhnd_nvram_subr.c715 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 Dbhnd_nvram_value_fmts.c970 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 Dfmt_scaled.c80 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 Dvfprintf.c94 grouping_init(struct grouping_state *gs, int ndigits, locale_t loc) in grouping_init() argument
104 gs->lead = ndigits; in grouping_init()
H A Dvfwprintf.c123 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 Dregcomp.c779 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 Dregcomp.c668 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 Dregcomp.c1004 int ndigits = 0; in p_count() local
1008 ndigits++; in p_count()
1011 (void)REQUIRE(ndigits > 0 && count <= DUPMAX, REG_BADBR); in p_count()