}
}
-// Return the maximum value of integral type *type*.
-#define _Py_IntegralTypeMax(type) \
- (_Py_IS_TYPE_SIGNED(type) ? (((((type)1 << (sizeof(type)*CHAR_BIT - 2)) - 1) << 1) + 1) : ~(type)0)
-
-// Return the minimum value of integral type *type*.
-#define _Py_IntegralTypeMin(type) \
- (_Py_IS_TYPE_SIGNED(type) ? -_Py_IntegralTypeMax(type) - 1 : 0)
-
-// Check whether *v* is in the range of integral type *type*. This is most
-// useful if *v* is floating-point, since demoting a floating-point *v* to an
-// integral type that cannot represent *v*'s integral part is undefined
-// behavior.
-#define _Py_InIntegralTypeRange(type, v) \
- (_Py_IntegralTypeMin(type) <= v && v <= _Py_IntegralTypeMax(type))
-
//--- HAVE_PY_SET_53BIT_PRECISION macro ------------------------------------
//