Home
last modified time | relevance | path

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

/external/python/cpython3/Objects/
Dfloatobject.c1261 int half_eps, digit, round_up, negate=0; in float_fromhex() local
1435 half_eps = 1 << (int)((lsb - exp - 1) % 4); in float_fromhex()
1440 x = 16.0*x + (double)(digit & (16-2*half_eps)); in float_fromhex()
1444 if ((digit & half_eps) != 0) { in float_fromhex()
1446 if ((digit & (3*half_eps-1)) != 0 || in float_fromhex()
1447 (half_eps == 8 && (HEX_DIGIT(key_digit+1) & 1) != 0)) in float_fromhex()
1456 x += 2*half_eps; in float_fromhex()
1458 x == ldexp((double)(2*half_eps), DBL_MANT_DIG)) in float_fromhex()
/external/python/cpython2/Objects/
Dfloatobject.c1456 int half_eps, digit, round_up, sign=1; in float_fromhex() local
1638 half_eps = 1 << (int)((lsb - exp - 1) % 4); in float_fromhex()
1643 x = 16.0*x + (double)(digit & (16-2*half_eps)); in float_fromhex()
1647 if ((digit & half_eps) != 0) { in float_fromhex()
1649 if ((digit & (3*half_eps-1)) != 0 || in float_fromhex()
1650 (half_eps == 8 && (HEX_DIGIT(key_digit+1) & 1) != 0)) in float_fromhex()
1659 x += 2*half_eps; in float_fromhex()
1661 x == ldexp((double)(2*half_eps), DBL_MANT_DIG)) in float_fromhex()