| 2481 | } |
| 2482 | |
| 2483 | static bool |
| 2484 | increment_overflow_64(int *ip, int_fast64_t j) |
| 2485 | { |
| 2486 | #ifdef ckd_add |
| 2487 | return ckd_add(ip, *ip, j); |
| 2488 | #else |
| 2489 | if (j < 0 ? *ip < INT_MIN - j : INT_MAX - j < *ip) |
| 2490 | return true; |
| 2491 | *ip += j; |
| 2492 | return false; |
| 2493 | #endif |
| 2494 | } |
| 2495 | |
| 2496 | static bool |
| 2497 | increment_overflow_time_iinntt(time_t *tp, iinntt j) |