Home
last modified time | relevance | path

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

/external/python/cpython3/Objects/
Dfloatobject.c1281 int half_eps, digit, round_up, negate=0; in float_fromhex() local
1455 half_eps = 1 << (int)((lsb - exp - 1) % 4); in float_fromhex()
1460 x = 16.0*x + (double)(digit & (16-2*half_eps)); in float_fromhex()
1464 if ((digit & half_eps) != 0) { in float_fromhex()
1466 if ((digit & (3*half_eps-1)) != 0 || (half_eps == 8 && in float_fromhex()
1476 x += 2*half_eps; in float_fromhex()
1478 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()