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

Function libdivide_mullhi_s32

numpy/core/include/numpy/libdivide/libdivide.h:224–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222}
223
224static inline int32_t libdivide_mullhi_s32(int32_t x, int32_t y) {
225 int64_t xl = x, yl = y;
226 int64_t rl = xl * yl;
227 // needs to be arithmetic shift
228 return (int32_t)(rl >> 32);
229}
230
231static inline uint64_t libdivide_mullhi_u64(uint64_t x, uint64_t y) {
232#if defined(LIBDIVIDE_VC) && \

Callers 2

libdivide_s32_doFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected