Lines Matching defs:overflow

431 /* Checking for overflow in PyLong_AsLong is a PITA since C doesn't define
446 On overflow, return -1 and set *overflow to 1 or -1 depending on the sign of
447 the result. Otherwise *overflow is 0.
450 In this case *overflow will be 0.
454 PyLong_AsLongAndOverflow(PyObject *vv, int *overflow)
464 *overflow = 0;
504 *overflow = sign;
518 *overflow = sign;
530 method. Return -1 and set an error if overflow occurs. */
535 int overflow;
536 long result = PyLong_AsLongAndOverflow(obj, &overflow);
537 if (overflow) {
539 message for overflow == -1 */
547 method. Return -1 and set an error if overflow occurs. */
552 int overflow;
553 long result = PyLong_AsLongAndOverflow(obj, &overflow);
554 if (overflow || result > INT_MAX || result < INT_MIN) {
556 message for overflow == -1 */
565 Returns -1 and sets an error condition if overflow occurs. */
600 goto overflow;
611 /* else overflow */
613 overflow:
620 Returns -1 and sets an error condition if overflow occurs. */
664 an error condition if overflow occurs. */
869 /* catch overflow before it happens */
1169 /* avoid signed overflow when ival = SIZE_T_MIN */
1197 __index__ method. Return -1 and set an error if overflow occurs. */
1249 Return -1 and set an error if overflow occurs. */
1343 On overflow, return -1 and set *overflow to 1 or -1 depending on the sign of
1344 the result. Otherwise *overflow is 0.
1347 In this case *overflow will be 0.
1351 PyLong_AsLongLongAndOverflow(PyObject *vv, int *overflow)
1361 *overflow = 0;
1401 *overflow = sign;
1415 *overflow = sign;
1971 /* Ensure overflow doesn't occur during computation of sz. */
2823 that won't overflow a digit. */
2973 /* The following is an overflow-free version of the check
2978 goto overflow;
3046 goto overflow;
3054 overflow:
3998 0. reduce to case a, b > 0; filter out obvious underflow/overflow
4077 behaviour of ldexp on overflow, we check for overflow before
4116 /* Catch obvious cases of underflow and overflow */
4119 /* Extreme overflow */
4120 goto overflow;
4129 goto overflow;
4148 "intermediate overflow during division");
4221 /* Check whether ldexp result will overflow a double. */
4224 goto overflow;
4233 overflow:
5031 the final two's complement of z doesn't overflow. */
5709 /* expression above may overflow; use Python integers instead */
5774 from the first PY_SSIZE_T_MAX/PyLong_SHIFT digits can't overflow a
5786 /* Use Python integers if bit_count would overflow. */