Home
last modified time | relevance | path

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

/external/python/cpython3/Python/
Dpystrtod.c1007 Py_ssize_t decpt, digits_len, vdigits_start, vdigits_end; in format_float_short() local
1017 decpt = (Py_ssize_t)decpt_as_int; in format_float_short()
1106 vdigits_end = decpt + precision; in format_float_short()
1109 if (decpt <= -4 || decpt > in format_float_short()
1121 if (decpt <= -4 || decpt > 16) in format_float_short()
1132 exp = (int)decpt - 1; in format_float_short()
1133 decpt = 1; in format_float_short()
1137 vdigits_start = decpt <= 0 ? decpt-1 : 0; in format_float_short()
1139 vdigits_end = vdigits_end > decpt ? vdigits_end : decpt + 1; in format_float_short()
1141 vdigits_end = vdigits_end > decpt ? vdigits_end : decpt; in format_float_short()
[all …]
Ddtoa.c2248 int *decpt, int *sign, char **rve) in _Py_dg_dtoa() argument
2313 *decpt = 9999; in _Py_dg_dtoa()
2319 *decpt = 1; in _Py_dg_dtoa()
2838 *decpt = k + 1; in _Py_dg_dtoa()
/external/python/cpython2/Python/
Dpystrtod.c947 Py_ssize_t decpt, digits_len, vdigits_start, vdigits_end; in format_float_short() local
957 decpt = (Py_ssize_t)decpt_as_int; in format_float_short()
1048 vdigits_end = decpt + precision; in format_float_short()
1051 if (decpt <= -4 || decpt > in format_float_short()
1063 if (decpt <= -4 || decpt > 16) in format_float_short()
1074 exp = decpt - 1; in format_float_short()
1075 decpt = 1; in format_float_short()
1079 vdigits_start = decpt <= 0 ? decpt-1 : 0; in format_float_short()
1081 vdigits_end = vdigits_end > decpt ? vdigits_end : decpt + 1; in format_float_short()
1083 vdigits_end = vdigits_end > decpt ? vdigits_end : decpt; in format_float_short()
[all …]
Ddtoa.c2346 int *decpt, int *sign, char **rve) in _Py_dg_dtoa() argument
2411 *decpt = 9999; in _Py_dg_dtoa()
2417 *decpt = 1; in _Py_dg_dtoa()
2928 *decpt = k + 1; in _Py_dg_dtoa()
/external/python/cpython2/Include/
Ddtoa.h8 int *decpt, int *sign, char **rve);
/external/python/cpython3/Include/internal/
Dpycore_dtoa.h15 int *decpt, int *sign, char **rve);
/external/python/cpython2/Objects/
Dfloatobject.c1096 int decpt, sign, val, halfway_case; in _Py_double_round() local
1165 buf = _Py_dg_dtoa(x, 3, ndigits+halfway_case, &decpt, &sign, &buf_end); in _Py_double_round()
1180 assert(buflen - decpt == ndigits+1); in _Py_double_round()
1184 decpt += 1; in _Py_double_round()
1206 buf, decpt - (int)buflen); in _Py_double_round()
/external/python/cpython3/Objects/
Dfloatobject.c911 int decpt, sign; in double_round() local
917 buf = _Py_dg_dtoa(x, 3, ndigits, &decpt, &sign, &buf_end); in double_round()
937 buf, decpt - (int)buflen); in double_round()