MCPcopy Create free account
hub / github.com/numpy/numpy / to_64

Function to_64

numpy/core/src/common/npy_extint128.h:77–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75
76
77static inline npy_int64
78to_64(npy_extint128_t x, char *overflow)
79{
80 if (x.hi != 0 ||
81 (x.sign > 0 && x.lo > NPY_MAX_INT64) ||
82 (x.sign < 0 && x.lo != 0 && x.lo - 1 > -(NPY_MIN_INT64 + 1))) {
83 *overflow = 1;
84 }
85 return x.lo * x.sign;
86}
87
88
89/* Long integer multiply */

Callers 1

diophantine_dfsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected