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

Function pcg128_mult_64

numpy/random/src/pcg64/pcg64.h:207–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205}
206
207static inline pcg128_t pcg128_mult_64(pcg128_t a, uint64_t b) {
208 uint64_t h1;
209 pcg128_t result;
210
211 h1 = a.high * b;
212 _pcg_mult64(a.low, b, &(result.high), &(result.low));
213 result.high += h1;
214 return result;
215}
216
217static inline void pcg_cm_step_r(pcg_state_setseq_128 *rng) {
218#if defined _WIN32 && _M_AMD64

Callers 2

pcg_cm_step_rFunction · 0.85
pcg_cm_random_rFunction · 0.85

Calls 1

_pcg_mult64Function · 0.85

Tested by

no test coverage detected