Home
last modified time | relevance | path

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

/external/python/cpython3/Objects/
Dfloatobject.c1282 int half_eps, digit, round_up, negate=0; in float_fromhex() local
1456 half_eps = 1 << (int)((lsb - exp - 1) % 4); in float_fromhex()
1461 x = 16.0*x + (double)(digit & (16-2*half_eps)); in float_fromhex()
1465 if ((digit & half_eps) != 0) { in float_fromhex()
1467 if ((digit & (3*half_eps-1)) != 0 || in float_fromhex()
1468 (half_eps == 8 && (HEX_DIGIT(key_digit+1) & 1) != 0)) in float_fromhex()
1477 x += 2*half_eps; in float_fromhex()
1479 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()