Home
last modified time | relevance | path

Searched refs:abs_ival (Results 1 – 3 of 3) sorted by relevance

/external/python/cpython2/Objects/
Dintobject.c1007 unsigned long abs_ival, lsb; in int_float() local
1011 abs_ival = 0U-(unsigned long)v->ob_ival; in int_float()
1013 abs_ival = (unsigned long)v->ob_ival; in int_float()
1014 if (abs_ival < (1L << DBL_MANT_DIG)) in int_float()
1033 lsb = 1L << (bits_in_ulong(abs_ival)-DBL_MANT_DIG-1); in int_float()
1034 round_up = (abs_ival & lsb) && (abs_ival & (3*lsb-1)); in int_float()
1035 abs_ival &= -2*lsb; in int_float()
1037 abs_ival += 2*lsb; in int_float()
1039 -(double)abs_ival : in int_float()
1040 (double)abs_ival); in int_float()
Dlongobject.c104 unsigned long abs_ival; in PyLong_FromLong() local
113 abs_ival = (unsigned long)(-1-ival) + 1; in PyLong_FromLong()
117 abs_ival = (unsigned long)ival; in PyLong_FromLong()
124 t = abs_ival; in PyLong_FromLong()
133 t = abs_ival; in PyLong_FromLong()
849 unsigned PY_LONG_LONG abs_ival; in PyLong_FromLongLong() local
857 abs_ival = (unsigned PY_LONG_LONG)(-1-ival) + 1; in PyLong_FromLongLong()
861 abs_ival = (unsigned PY_LONG_LONG)ival; in PyLong_FromLongLong()
868 t = abs_ival; in PyLong_FromLongLong()
877 t = abs_ival; in PyLong_FromLongLong()
/external/python/cpython3/Objects/
Dlongobject.c246 unsigned long abs_ival; in PyLong_FromLong() local
256 abs_ival = 0U-(unsigned long)ival; in PyLong_FromLong()
260 abs_ival = (unsigned long)ival; in PyLong_FromLong()
265 if (!(abs_ival >> PyLong_SHIFT)) { in PyLong_FromLong()
270 abs_ival, unsigned long, digit); in PyLong_FromLong()
277 if (!(abs_ival >> 2*PyLong_SHIFT)) { in PyLong_FromLong()
282 abs_ival & PyLong_MASK, unsigned long, digit); in PyLong_FromLong()
284 abs_ival >> PyLong_SHIFT, unsigned long, digit); in PyLong_FromLong()
291 t = abs_ival; in PyLong_FromLong()
300 t = abs_ival; in PyLong_FromLong()
[all …]