File tree Expand file tree Collapse file tree 1 file changed +15
-5
lines changed
Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -860,11 +860,21 @@ The :c:type:`PyLongWriter` API can be used to import an integer.
860860Deprecated API
861861^^^^^^^^^^^^^^
862862
863- .. c :macro :: PyLong_BASE
863+ These macros are :term: `soft deprecated `. They represent internal constants
864+ for :c:type: `PyLongObject ` instances.
865+
866+ Do not use these; use :c:func: `PyLong_GetNativeLayout ` instead.
867+
864868.. c :macro :: PyLong_SHIFT
865- .. c :macro :: PyLong_MASK
866869
867- These macros are :term: `soft deprecated `. They represent internal constants
868- for :c:type: `PyLongObject ` instances.
870+ This is currently equivalent to ``30 ``.
871+
872+
873+ .. c :macro :: PyLong_BASE
874+
875+ This is currently equivalent to :c:expr: `1 << PyLong_SHIFT `.
876+
877+
878+ .. c :macro :: PyLong_MASK
869879
870- Do not use these; use :c:func: ` PyLong_GetNativeLayout ` instead.
880+ This is currently equivalent to :c:expr: ` PyLong_BASE - 1 `
You can’t perform that action at this time.
0 commit comments