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

Function pcg128_add

numpy/random/src/pcg64/pcg64.h:123–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121#ifdef PCG_EMULATED_128BIT_MATH
122
123static inline pcg128_t pcg128_add(pcg128_t a, pcg128_t b) {
124 pcg128_t result;
125
126 result.low = a.low + b.low;
127 result.high = a.high + b.high + (result.low < b.low);
128 return result;
129}
130
131static inline void _pcg_mult64(uint64_t x, uint64_t y, uint64_t *z1,
132 uint64_t *z0) {

Callers 6

pcg_advance_lcg_128Function · 0.85
pcg_setseq_128_step_rFunction · 0.85
pcg_setseq_128_srandom_rFunction · 0.85
pcg_cm_step_rFunction · 0.85
pcg_cm_srandom_rFunction · 0.85
pcg_cm_random_rFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected