Lines Matching refs:ndigits
422 extern "C" char *__dtoa(double d, int mode, int ndigits,
2358 (_d, mode, ndigits, decpt, sign, rve) in __dtoa() argument
2359 double _d; int mode, ndigits, *decpt, *sign; char **rve; in __dtoa()
2361 (double _d, int mode, int ndigits, int *decpt, int *sign, char **rve)
2567 ndigits = 0;
2573 if (ndigits <= 0)
2574 ndigits = 1;
2575 ilim = ilim1 = i = ndigits;
2581 i = ndigits + k + 1;
2709 if (ndigits < 0 && ilim <= 0) {
2868 k = -1 - ndigits;
3036 roundup(char *s0, int ndigits) in roundup() argument
3040 for (s = s0 + ndigits - 1; *s == 0xf; s--) { in roundup()
3058 dorounding(char *s0, int ndigits, int sign, int *decpt) in dorounding() argument
3067 if ((s0[ndigits] > 8) || in dorounding()
3068 (s0[ndigits] == 8 && s0[ndigits + 1] & 1)) in dorounding()
3069 adjust = roundup(s0, ndigits); in dorounding()
3073 adjust = roundup(s0, ndigits); in dorounding()
3077 adjust = roundup(s0, ndigits); in dorounding()
3110 __hdtoa(double d, const char *xdigs, int ndigits, int *decpt, int *sign, in __hdtoa() argument
3153 if (ndigits == 0) /* dtoa() compatibility */ in __hdtoa()
3154 ndigits = 1; in __hdtoa()
3160 bufsize = (sigfigs > ndigits) ? sigfigs : ndigits; in __hdtoa()
3191 if (ndigits < 0) { in __hdtoa()
3192 for (ndigits = sigfigs; s0[ndigits - 1] == 0; ndigits--) in __hdtoa()
3196 if (sigfigs > ndigits && s0[ndigits] != 0) in __hdtoa()
3197 dorounding(s0, ndigits, u.bits.sign, decpt); in __hdtoa()
3199 s = s0 + ndigits; in __hdtoa()