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

Function splitmix64_next32

numpy/random/src/splitmix64/splitmix64.h:20–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20static inline uint32_t splitmix64_next32(splitmix64_state *state) {
21 uint64_t next;
22 if (state->has_uint32) {
23 state->has_uint32 = 0;
24 return state->uinteger;
25 }
26 next = splitmix64_next64(state);
27 state->has_uint32 = 1;
28 state->uinteger = (uint32_t)(next >> 32);
29 return (uint32_t)(next & 0xffffffff);
30}

Callers

nothing calls this directly

Calls 1

splitmix64_next64Function · 0.85

Tested by

no test coverage detected