Home
last modified time | relevance | path

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

/external/python/cpython3/Python/
Dpystrtod.c1008 Py_ssize_t decpt, digits_len, vdigits_start, vdigits_end; in format_float_short() local
1018 decpt = (Py_ssize_t)decpt_as_int; in format_float_short()
1107 vdigits_end = decpt + precision; in format_float_short()
1110 if (decpt <= -4 || decpt > in format_float_short()
1122 if (decpt <= -4 || decpt > 16) in format_float_short()
1133 exp = (int)decpt - 1; in format_float_short()
1134 decpt = 1; in format_float_short()
1138 vdigits_start = decpt <= 0 ? decpt-1 : 0; in format_float_short()
1140 vdigits_end = vdigits_end > decpt ? vdigits_end : decpt + 1; in format_float_short()
1142 vdigits_end = vdigits_end > decpt ? vdigits_end : decpt; in format_float_short()
[all …]
Ddtoa.c2273 int *decpt, int *sign, char **rve) in _Py_dg_dtoa() argument
2338 *decpt = 9999; in _Py_dg_dtoa()
2344 *decpt = 1; in _Py_dg_dtoa()
2855 *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/
Ddtoa.h9 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.c932 int decpt, sign; in double_round() local
938 buf = _Py_dg_dtoa(x, 3, ndigits, &decpt, &sign, &buf_end); in double_round()
958 buf, decpt - (int)buflen); in double_round()