Home
last modified time | relevance | path

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

/third_party/python/Objects/
Dlongobject.c850 int do_twos_comp; /* store 2's-comp? is_signed and v < 0 */ in _PyLong_AsByteArray() local
865 do_twos_comp = 1; in _PyLong_AsByteArray()
869 do_twos_comp = 0; in _PyLong_AsByteArray()
889 carry = do_twos_comp ? 1 : 0; in _PyLong_AsByteArray()
892 if (do_twos_comp) { in _PyLong_AsByteArray()
908 digit s = do_twos_comp ? thisdigit ^ PyLong_MASK : thisdigit; in _PyLong_AsByteArray()
936 if (do_twos_comp) { in _PyLong_AsByteArray()
953 if (sign_bit_set == do_twos_comp) in _PyLong_AsByteArray()
961 unsigned char signbyte = do_twos_comp ? 0xffU : 0U; in _PyLong_AsByteArray()