diff options
author | Mark Shannon <mark@hotpy.org> | 2023-05-21 13:45:48 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-21 13:45:48 (GMT) |
commit | 93923793f602ea9117f13bfac8cbe01a864eeb01 (patch) | |
tree | 33657460417c68e16479212566385144a0d9d30a /Objects | |
parent | ab71acd67b5b09926498b8c7f855bdb28ac0ec2f (diff) | |
download | cpython-93923793f602ea9117f13bfac8cbe01a864eeb01.zip cpython-93923793f602ea9117f13bfac8cbe01a864eeb01.tar.gz cpython-93923793f602ea9117f13bfac8cbe01a864eeb01.tar.bz2 |
GH-101291: Add low level, unstable API for pylong (GH-101685)
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/longobject.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c index 853e934..5fca55e 100644 --- a/Objects/longobject.c +++ b/Objects/longobject.c @@ -6366,3 +6366,17 @@ _PyLong_FiniTypes(PyInterpreterState *interp) { _PyStructSequence_FiniBuiltin(interp, &Int_InfoType); } + +#undef PyUnstable_Long_IsCompact + +int +PyUnstable_Long_IsCompact(const PyLongObject* op) { + return _PyLong_IsCompact(op); +} + +#undef PyUnstable_Long_CompactValue + +Py_ssize_t +PyUnstable_Long_CompactValue(const PyLongObject* op) { + return _PyLong_CompactValue(op); +} |