<tt>xoshiro
Loading...
Searching...
No Matches
xso::star_star< S, R, T, w >

The star_star functor multiplies a state word by a constant, rotates the result, then multiplies by another constant. More...

#include <xoshiro.h>

Detailed Description

template<auto S, auto R, auto T, std::size_t w>
struct xso::star_star< S, R, T, w >

The star_star functor multiplies a state word by a constant, rotates the result, then multiplies by another constant.

Template Parameters
SA constant multiplier.
RA rotation amount.
TA constant multiplier applied after the rotation.
wThe index of the word in the state array to use.

This scrambler can be passed a state array and will return rotl(S * state[w], R) * T.