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

Function philox_next32

numpy/random/src/philox/philox.h:236–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234}
235
236static inline uint32_t philox_next32(philox_state *state) {
237 uint64_t next;
238
239 if (state->has_uint32) {
240 state->has_uint32 = 0;
241 return state->uinteger;
242 }
243 next = philox_next(state);
244
245 state->has_uint32 = 1;
246 state->uinteger = (uint32_t)(next >> 32);
247 return (uint32_t)(next & 0xffffffff);
248}
249
250extern void philox_jump(philox_state *state);
251

Callers

nothing calls this directly

Calls 1

philox_nextFunction · 0.85

Tested by

no test coverage detected