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

Function pcg_setseq_128_step_r

numpy/random/src/pcg64/pcg64.h:165–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}
164
165static inline void pcg_setseq_128_step_r(pcg_state_setseq_128 *rng) {
166 rng->state = pcg128_add(pcg128_mult(rng->state, PCG_DEFAULT_MULTIPLIER_128),
167 rng->inc);
168}
169
170static inline uint64_t pcg_output_xsl_rr_128_64(pcg128_t state) {
171 return pcg_rotr_64(state.high ^ state.low, state.high >> 58u);

Callers 2

pcg_setseq_128_srandom_rFunction · 0.70

Calls 2

pcg128_addFunction · 0.85
pcg128_multFunction · 0.85

Tested by

no test coverage detected