Home
last modified time | relevance | path

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

/bionic/libc/upstream-openbsd/lib/libc/gdtoa/
Dhdtoa.c126 static const int sigfigs = (DBL_MANT_DIG + 3) / 4; in __hdtoa() local
163 bufsize = (sigfigs > ndigits) ? sigfigs : ndigits; in __hdtoa()
176 for (s = s0 + bufsize - 1; s > s0 + sigfigs - 1; s--) in __hdtoa()
178 for (; s > s0 + sigfigs - (DBL_FRACLBITS / 4) - 1 && s > s0; s--) { in __hdtoa()
197 for (ndigits = sigfigs; s0[ndigits - 1] == 0; ndigits--) in __hdtoa()
201 if (sigfigs > ndigits && s0[ndigits] != 0) in __hdtoa()
224 static const int sigfigs = (LDBL_MANT_DIG + 3) / 4; in __hldtoa() local
262 bufsize = (sigfigs > ndigits) ? sigfigs : ndigits; in __hldtoa()
275 for (s = s0 + bufsize - 1; s > s0 + sigfigs - 1; s--) in __hldtoa()
309 for (ndigits = sigfigs; s0[ndigits - 1] == 0; ndigits--) in __hldtoa()
[all …]