<tt>xoshiro
Loading...
Searching...
No Matches
xso::plus_plus< R, w0, w1 >

The plus_plus functor can be passed a state array and will return the sum of two state words rotated and shifted. More...

#include <xoshiro.h>

Detailed Description

template<auto R, std::size_t w0, std::size_t w1>
struct xso::plus_plus< R, w0, w1 >

The plus_plus functor can be passed a state array and will return the sum of two state words rotated and shifted.

Template Parameters
w0The index of the first word in the state array to use.
w1The index of the second word in the state array to use.
RA rotation amount.

This scrambler can be passed a state array and will return rotl(state[w0] + state[w1], R) + state[w0].