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

Function rotl

numpy/random/src/sfc64/sfc64.h:17–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15
16
17static inline uint64_t rotl(const uint64_t value, unsigned int rot) {
18#ifdef _WIN32
19 return _rotl64(value, rot);
20#else
21 return (value << rot) | (value >> ((-rot) & 63));
22#endif
23}
24
25static inline uint64_t sfc64_next(uint64_t *s) {
26 const uint64_t tmp = s[0] + s[1] + s[3]++;

Callers 1

sfc64_nextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected