◐ Shell
clean mode source ↗

GH-101291: Rearrange the size bits in PyLongObject by markshannon · Pull Request #102464 · python/cpython

added 20 commits

February 28, 2023 11:59
…Long_SignedDigitCount which might not be optimal, but is safe.
…ion of immortal ints and tagged medium ints.

gvanrossum

lpereira

gvanrossum

gvanrossum

Fidget-Spinner pushed a commit to Fidget-Spinner/cpython that referenced this pull request

Mar 27, 2023
…2464)

* Eliminate all remaining uses of Py_SIZE and Py_SET_SIZE on PyLongObject, adding asserts.

* Change layout of size/sign bits in longobject to support future addition of immortal ints and tagged medium ints.

* Add functions to hide some internals of long object, and for setting sign and digit count.

* Replace uses of IS_MEDIUM_VALUE macro with _PyLong_IsCompact().

scoder added a commit to cython/cython that referenced this pull request

Apr 5, 2023

eduardo-elizondo

eduardo-elizondo

warsaw pushed a commit to warsaw/cpython that referenced this pull request

Apr 11, 2023
…2464)

* Eliminate all remaining uses of Py_SIZE and Py_SET_SIZE on PyLongObject, adding asserts.

* Change layout of size/sign bits in longobject to support future addition of immortal ints and tagged medium ints.

* Add functions to hide some internals of long object, and for setting sign and digit count.

* Replace uses of IS_MEDIUM_VALUE macro with _PyLong_IsCompact().

verhovsky