Lines Matching defs:ndigits
78 __hldtoa(long double e, const char *xdigs, int ndigits, int *decpt, int *sign,
120 if (ndigits == 0) /* dtoa() compatibility */
121 ndigits = 1;
124 * If ndigits < 0, we are expected to auto-size, so we allocate
127 bufsize = (ndigits > 0) ? ndigits : SIGFIGS;
131 if (SIGFIGS > ndigits && ndigits > 0) {
133 int offset = 4 * ndigits + LDBL_MAX_EXP - 4 - LDBL_MANT_DIG;
156 /* If ndigits < 0, we are expected to auto-size the precision. */
157 if (ndigits < 0) {
158 for (ndigits = SIGFIGS; s0[ndigits - 1] == '0'; ndigits--)
162 s = s0 + ndigits;
172 __hldtoa(long double e, const char *xdigs, int ndigits, int *decpt, int *sign,
176 return (__hdtoa((double)e, xdigs, ndigits, decpt, sign, rve));