Lines Matching refs:ndigits
76 __hldtoa(long double e, const char *xdigs, int ndigits, int *decpt, int *sign,
118 if (ndigits == 0) /* dtoa() compatibility */
119 ndigits = 1;
122 * If ndigits < 0, we are expected to auto-size, so we allocate
125 bufsize = (ndigits > 0) ? ndigits : SIGFIGS;
129 if (SIGFIGS > ndigits && ndigits > 0) {
131 int offset = 4 * ndigits + LDBL_MAX_EXP - 4 - LDBL_MANT_DIG;
154 /* If ndigits < 0, we are expected to auto-size the precision. */
155 if (ndigits < 0) {
156 for (ndigits = SIGFIGS; s0[ndigits - 1] == '0'; ndigits--)
160 s = s0 + ndigits;
170 __hldtoa(long double e, const char *xdigs, int ndigits, int *decpt, int *sign,
174 return (__hdtoa((double)e, xdigs, ndigits, decpt, sign, rve));