gKit2 light
Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Philox32 Struct Reference

Classes

struct  array1x32
 
struct  array2x32
 

Public Types

typedef unsigned result_type
 

Public Member Functions

 Philox32 (const uint64_t s)
 
 Philox32 (const unsigned hi, const unsigned lo=0x40ba6a95)
 
void seed (const unsigned hi, const unsigned lo=0x40ba6a95)
 
void seed64 (const uint64_t s)
 
Philox32index (const uint64_t i)
 
unsigned sample ()
 
unsigned sample_range (const unsigned range)
 
unsigned operator() ()
 

Static Public Member Functions

static constexpr unsigned min ()
 
static constexpr unsigned max ()
 

Protected Member Functions

array1x32 bumpkey (array1x32 key)
 
unsigned mulhilo32 (unsigned a, unsigned b, unsigned *hip)
 
array2x32 round (array2x32 ctr, array1x32 key)
 
template<int R>
array2x32 philox2x32 (array2x32 ctr, array1x32 key)
 

Protected Attributes

uint64_t n
 
array1x32 key
 

Detailed Description

Definition at line 114 of file rand123.h.


Class Documentation

◆ Philox32::array1x32

struct Philox32::array1x32

Definition at line 163 of file rand123.h.

Class Members
unsigned v[1]

◆ Philox32::array2x32

struct Philox32::array2x32

Definition at line 162 of file rand123.h.

Class Members
unsigned v[2]

The documentation for this struct was generated from the following file: