Lines Matching refs:overflow

91        overflow */
227 /* Checking for overflow in PyLong_AsLong is a PITA since C doesn't define
240 On overflow, returns -1 and sets *overflow to 1 or -1 depending
241 on the sign of the result. Otherwise *overflow is 0.
248 PyLong_AsLongAndOverflow(PyObject *vv, int *overflow)
258 *overflow = 0;
316 *overflow = sign;
330 *overflow = sign;
342 Returns -1 and sets an error condition if overflow occurs. */
347 int overflow;
348 long result = PyLong_AsLongAndOverflow(obj, &overflow);
349 if (overflow) {
351 message for overflow == -1 */
359 Returns -1 and sets an error condition if overflow occurs. */
384 goto overflow;
395 /* else overflow */
397 overflow:
404 Returns -1 and sets an error condition if overflow occurs. */
576 /* catch overflow before it happens */
853 /* avoid signed overflow on negation; see comments
934 Return -1 and set an error if overflow occurs. */
986 Return -1 and set an error if overflow occurs. */
1040 On overflow, returns -1 and sets *overflow to 1 or -1 depending
1041 on the sign of the result. Otherwise *overflow is 0.
1048 PyLong_AsLongLongAndOverflow(PyObject *vv, int *overflow)
1058 *overflow = 0;
1116 *overflow = sign;
1130 *overflow = sign;
1366 /* the expression size_a * PyLong_SHIFT is now safe from overflow */
1481 /* ensure we don't get signed overflow in sz calculation */
2090 that won't overflow a digit. */
2232 /* The following is an overflow-free version of the check
2237 goto overflow;
2308 goto overflow;
2316 overflow:
3103 0. reduce to case a, b > 0; filter out obvious underflow/overflow
3182 behaviour of ldexp on overflow, we check for overflow before
3221 /* Catch obvious cases of underflow and overflow */
3224 /* Extreme overflow */
3225 goto overflow;
3234 goto overflow;
3253 "intermediate overflow during division");
3326 /* Check whether ldexp result will overflow a double. */
3329 goto overflow;
3342 overflow:
3837 the final two's complement of z doesn't overflow. */
4153 /* expression above may overflow; use Python integers instead */