|
HikoGUI
A low latency retained GUI
|
#include <ttauri/random/xorshift128p.hpp>
Public Member Functions | |
| constexpr | xorshift128p (xorshift128p const &) noexcept=default |
| constexpr | xorshift128p (xorshift128p &&) noexcept=default |
| constexpr xorshift128p & | operator= (xorshift128p const &) noexcept=default |
| constexpr xorshift128p & | operator= (xorshift128p &&) noexcept=default |
| constexpr | xorshift128p (u64x2 new_state) noexcept |
| xorshift128p (seed_generator &sg) noexcept | |
| template<typename T > | |
| T | next () noexcept |
| template<> | |
| uint64_t | next () noexcept |
| Get the next 64 bit of random value. | |
| template<> | |
| u64x2 | next () noexcept |
| Get next 128 bit of random value. | |
| template<> | |
| u32x4 | next () noexcept |
| template<> | |
| i32x4 | next () noexcept |
| template<> | |
| i16x8 | next () noexcept |
xorshift128+
|
inlinenoexcept |
Get the next 64 bit of random value.
|
inlinenoexcept |
Get next 128 bit of random value.
The algorithm is based around next64(), it was modified to do two consecutive iterations and then merging those using sse instructions.