MCPcopy Create free account
hub / github.com/MagicStack/asyncpg / _PyLong_DigitCount

Function _PyLong_DigitCount

asyncpg/protocol/record/pythoncapi_compat.h:1757–1765  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1755}
1756
1757static inline Py_ssize_t
1758_PyLong_DigitCount(const PyLongObject *op)
1759{
1760#if PY_VERSION_HEX >= 0x030C0000
1761 return (Py_ssize_t)(op->long_value.lv_tag >> 3);
1762#else
1763 return _PyLong_Sign((PyObject*)op) < 0 ? -Py_SIZE(op) : Py_SIZE(op);
1764#endif
1765}
1766
1767static inline digit*
1768_PyLong_GetDigits(const PyLongObject *op)

Callers 2

PyLong_ExportFunction · 0.85
PyLongWriter_FinishFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected