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

Function mulhilo64

numpy/random/src/philox/philox.h:30–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28/* Prefer uint128 if available: GCC, clang, ICC */
29#ifdef __SIZEOF_INT128__
30static inline uint64_t mulhilo64(uint64_t a, uint64_t b, uint64_t *hip) {
31 __uint128_t product = ((__uint128_t)a) * ((__uint128_t)b);
32 *hip = product >> 64;
33 return (uint64_t)product;
34}
35#else
36#if defined(_WIN32) && !defined(__MINGW32__)
37#include <intrin.h>

Callers 1

_philox4x64roundFunction · 0.85

Calls 1

_umul128Function · 0.85

Tested by

no test coverage detected