Functions | |
static void | to_lcg (const uint64_t *ranlux, unsigned c, uint64_t *lcg) |
Convert RANLUX numbers to an LCG state. | |
static void | to_ranlux (const uint64_t *lcg, uint64_t *ranlux, unsigned &c_out) |
Convert an LCG state to RANLUX numbers. | |
|
static |
Convert RANLUX numbers to an LCG state.
[in] | ranlux | the RANLUX numbers as 576 bits |
[out] | lcg | the 576 bits of the LCG state, smaller than m |
[in] | c | the carry bit of the RANLUX state |
\( m = 2^{576} - 2^{240} + 1 \)
Definition at line 26 of file ranlux_lcg.h.
|
static |
Convert an LCG state to RANLUX numbers.
[in] | lcg | the 576 bits of the LCG state, must be smaller than m |
[out] | ranlux | the RANLUX numbers as 576 bits |
[out] | c_out | the carry bit of the RANLUX state |
\( m = 2^{576} - 2^{240} + 1 \)
Definition at line 58 of file ranlux_lcg.h.