Lines Matching defs:ndigits
55 * - An ndigits < 0 causes it to use as many digits as necessary to
70 * Inputs: d, xdigs, ndigits
74 __hdtoa(double d, const char *xdigs, int ndigits, int *decpt, int *sign,
106 if (ndigits == 0) /* dtoa() compatibility */
107 ndigits = 1;
110 * If ndigits < 0, we are expected to auto-size, so we allocate
113 bufsize = (ndigits > 0) ? ndigits : SIGFIGS;
117 if (SIGFIGS > ndigits && ndigits > 0) {
119 int offset = 4 * ndigits + DBL_MAX_EXP - 4 - DBL_MANT_DIG;
135 /* If ndigits < 0, we are expected to auto-size the precision. */
136 if (ndigits < 0) {
137 for (ndigits = SIGFIGS; s0[ndigits - 1] == '0'; ndigits--)
141 s = s0 + ndigits;