| 71 | } |
| 72 | |
| 73 | static inline npy_int64 |
| 74 | safe_abs64(npy_int64 x) { |
| 75 | npy_int64 nx; |
| 76 | if (x>=0) { |
| 77 | return x; |
| 78 | } |
| 79 | nx = -x; |
| 80 | if (nx<0) { |
| 81 | set_overflow(); |
| 82 | } |
| 83 | return nx; |
| 84 | } |
| 85 | |
| 86 | static inline npy_int64 |
| 87 | gcd(npy_int64 x, npy_int64 y) { |
no test coverage detected