#define POP() BASIC_POP()
#endif
-/* Strict int check macros */
-#define ISSTRICTINT(v) ((v)->ob_type == &PyInt_Type)
-
/* Local variable macros */
#define GETLOCAL(i) (fastlocals[i])
case BINARY_ADD:
w = POP();
v = POP();
- if (ISSTRICTINT(v) && ISSTRICTINT(w)) {
+ if (PyInt_CheckExact(v) && PyInt_CheckExact(w)) {
/* INLINE: int + int */
register long a, b, i;
a = PyInt_AS_LONG(v);
case BINARY_SUBTRACT:
w = POP();
v = POP();
- if (ISSTRICTINT(v) && ISSTRICTINT(w)) {
+ if (PyInt_CheckExact(v) && PyInt_CheckExact(w)) {
/* INLINE: int - int */
register long a, b, i;
a = PyInt_AS_LONG(v);
case BINARY_SUBSCR:
w = POP();
v = POP();
- if (v->ob_type == &PyList_Type && ISSTRICTINT(w)) {
+ if (v->ob_type == &PyList_Type && PyInt_CheckExact(w)) {
/* INLINE: list[int] */
long i = PyInt_AsLong(w);
if (i < 0)
case INPLACE_ADD:
w = POP();
v = POP();
- if (ISSTRICTINT(v) && ISSTRICTINT(w)) {
+ if (PyInt_CheckExact(v) && PyInt_CheckExact(w)) {
/* INLINE: int + int */
register long a, b, i;
a = PyInt_AS_LONG(v);
case INPLACE_SUBTRACT:
w = POP();
v = POP();
- if (ISSTRICTINT(v) && ISSTRICTINT(w)) {
+ if (PyInt_CheckExact(v) && PyInt_CheckExact(w)) {
/* INLINE: int - int */
register long a, b, i;
a = PyInt_AS_LONG(v);
case COMPARE_OP:
w = POP();
v = POP();
- if (ISSTRICTINT(v) && ISSTRICTINT(w)) {
+ if (PyInt_CheckExact(v) && PyInt_CheckExact(w)) {
/* INLINE: cmp(int, int) */
register long a, b;
register int res;