Long integer init */
| 59 | |
| 60 | /* Long integer init */ |
| 61 | static inline npy_extint128_t |
| 62 | to_128(npy_int64 x) |
| 63 | { |
| 64 | npy_extint128_t result; |
| 65 | result.sign = (x >= 0 ? 1 : -1); |
| 66 | if (x >= 0) { |
| 67 | result.lo = x; |
| 68 | } |
| 69 | else { |
| 70 | result.lo = (npy_uint64)(-(x + 1)) + 1; |
| 71 | } |
| 72 | result.hi = 0; |
| 73 | return result; |
| 74 | } |
| 75 | |
| 76 | |
| 77 | static inline npy_int64 |
no outgoing calls
no test coverage detected