Home
last modified time | relevance | path

Searched refs:PyLong_MASK (Results 1 – 4 of 4) sorted by relevance

/external/python/cpython3/Objects/
Dlongobject.c282 abs_ival & PyLong_MASK, unsigned long, digit); in PyLong_FromLong()
303 t & PyLong_MASK, unsigned long, digit); in PyLong_FromLong()
331 *p++ = (digit)(ival & PyLong_MASK); in PyLong_FromUnsignedLong()
865 v->ob_digit[idigit] = (digit)(accum & PyLong_MASK); in _PyLong_FromByteArray()
936 thisdigit = (thisdigit ^ PyLong_MASK) + carry; in _PyLong_AsByteArray()
938 thisdigit &= PyLong_MASK; in _PyLong_AsByteArray()
951 digit s = do_twos_comp ? thisdigit ^ PyLong_MASK : thisdigit; in _PyLong_AsByteArray()
1108 *p++ = (digit)(t & PyLong_MASK); in PyLong_FromLongLong()
1136 *p++ = (digit)(ival & PyLong_MASK); in PyLong_FromUnsignedLongLong()
1176 *p++ = (digit)(t & PyLong_MASK); in PyLong_FromSsize_t()
[all …]
/external/python/cpython2/Objects/
Dlongobject.c135 *p++ = (digit)(t & PyLong_MASK); in PyLong_FromLong()
162 *p++ = (digit)(ival & PyLong_MASK); in PyLong_FromUnsignedLong()
615 v->ob_digit[idigit] = (digit)(accum & PyLong_MASK); in _PyLong_FromByteArray()
686 thisdigit = (thisdigit ^ PyLong_MASK) + carry; in _PyLong_AsByteArray()
688 thisdigit &= PyLong_MASK; in _PyLong_AsByteArray()
701 digit s = do_twos_comp ? thisdigit ^ PyLong_MASK : thisdigit; in _PyLong_AsByteArray()
879 *p++ = (digit)(t & PyLong_MASK); in PyLong_FromLongLong()
906 *p++ = (digit)(ival & PyLong_MASK); in PyLong_FromUnsignedLongLong()
1215 x[i] = carry & PyLong_MASK; in v_iadd()
1221 x[i] = carry & PyLong_MASK; in v_iadd()
[all …]
/external/python/cpython2/Include/
Dlongintrepr.h64 #define PyLong_MASK ((digit)(PyLong_BASE - 1)) macro
69 #define MASK PyLong_MASK
/external/python/cpython3/Include/
Dlongintrepr.h64 #define PyLong_MASK ((digit)(PyLong_BASE - 1)) macro