File tree 2 files changed +8
-7
lines changed 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,14 @@ static inline PyObject* _PyLong_FromUnsignedChar(unsigned char i)
78
78
return Py_NewRef ((PyObject * )& _PyLong_SMALL_INTS [_PY_NSMALLNEGINTS + i ]);
79
79
}
80
80
81
+ /// Return 0 for nonnegative, zero-or-one-digit ints, 1 otherwise
82
+ static inline int
83
+ negative_or_multi_digit_int (PyObject * sub ) {
84
+ assert (PyLong_CheckExact (sub ));
85
+ Py_ssize_t signed_magnitude = Py_SIZE (sub );
86
+ return ((size_t )signed_magnitude ) > 1 ;
87
+ }
88
+
81
89
PyObject * _PyLong_Add (PyLongObject * left , PyLongObject * right );
82
90
PyObject * _PyLong_Multiply (PyLongObject * left , PyLongObject * right );
83
91
PyObject * _PyLong_Subtract (PyLongObject * left , PyLongObject * right );
Original file line number Diff line number Diff line change 36
36
void _PyFloat_ExactDealloc (PyObject * );
37
37
void _PyUnicode_ExactDealloc (PyObject * );
38
38
39
- /// Return 0 for nonnegative, zero-or-one-digit ints, 1 otherwise
40
- static inline int negative_or_multi_digit_int (const PyObject * sub ) {
41
- assert (PyLong_CheckExact (sub ));
42
- Py_ssize_t signed_magnitude = Py_SIZE (sub )
43
- return ((size_t )signed_magnitude ) > 1 ;
44
- }
45
-
46
39
/* Stack effect macros
47
40
* These will be mostly replaced by stack effect descriptions,
48
41
* but the tooling need to recognize them.
You can’t perform that action at this time.
0 commit comments