vSMC
vSMC: Scalable Monte Carlo
Classes | Functions
philox.h File Reference
#include <vsmc/internal/config.h>

Go to the source code of this file.

Classes

struct  vsmc_philox2x32
 Philox2x32 RNG state structure. More...
 
struct  vsmc_philox2x32_ctr_t
 Philox2x32 counter type. More...
 
struct  vsmc_philox2x32_key_t
 Philox2x32 key type. More...
 
struct  vsmc_philox2x32_par_t
 
struct  vsmc_philox4x32
 Philox4x32 RNG state structure. More...
 
struct  vsmc_philox4x32_ctr_t
 Philox4x32 counter type. More...
 
struct  vsmc_philox4x32_key_t
 Philox4x32 key type. More...
 
struct  vsmc_philox4x32_par_t
 

Functions

static void vsmc_philox2x32_bumpkey (vsmc_philox2x32_par_t *par)
 
static void vsmc_philox2x32_gen (const vsmc_philox2x32_ctr_t *ctr, const vsmc_philox2x32_key_t *key, vsmc_philox2x32_ctr_t *state)
 Generate Philox2x32 RNG state. More...
 
static void vsmc_philox2x32_inc (vsmc_philox2x32_ctr_t *ctr)
 
static void vsmc_philox2x32_init (vsmc_philox2x32 *rng, uint32_t seed)
 Initialize Philox2x32 RNG state. More...
 
static void vsmc_philox2x32_initpar (const vsmc_philox2x32_key_t *key, vsmc_philox2x32_par_t *par)
 
static uint32_t vsmc_philox2x32_rand (vsmc_philox2x32 *rng)
 Generate random 32-bits integers from Philox2x32 RNG. More...
 
static void vsmc_philox2x32_round (vsmc_philox2x32_ctr_t *state, const vsmc_philox2x32_par_t *par)
 
static void vsmc_philox4x32_bumpkey (vsmc_philox4x32_par_t *par)
 
static void vsmc_philox4x32_gen (const vsmc_philox4x32_ctr_t *ctr, const vsmc_philox4x32_key_t *key, vsmc_philox4x32_ctr_t *state)
 Generate Philox4x32 RNG state. More...
 
static void vsmc_philox4x32_inc (vsmc_philox4x32_ctr_t *ctr)
 
static void vsmc_philox4x32_init (vsmc_philox4x32 *rng, uint32_t seed)
 Initialize Philox4x32 RNG state. More...
 
static void vsmc_philox4x32_initpar (const vsmc_philox4x32_key_t *key, vsmc_philox4x32_par_t *par)
 
static uint32_t vsmc_philox4x32_rand (vsmc_philox4x32 *rng)
 Generate random 32-bits integers from Philox4x32 RNG. More...
 
static void vsmc_philox4x32_round (vsmc_philox4x32_ctr_t *state, const vsmc_philox4x32_par_t *par)
 

Function Documentation

static void vsmc_philox2x32_bumpkey ( vsmc_philox2x32_par_t par)
static

Definition at line 120 of file philox.h.

static void vsmc_philox2x32_inc ( vsmc_philox2x32_ctr_t ctr)
static

Definition at line 87 of file philox.h.

static void vsmc_philox2x32_initpar ( const vsmc_philox2x32_key_t key,
vsmc_philox2x32_par_t par 
)
static

Definition at line 107 of file philox.h.

static void vsmc_philox2x32_round ( vsmc_philox2x32_ctr_t state,
const vsmc_philox2x32_par_t par 
)
static

Definition at line 131 of file philox.h.

static void vsmc_philox4x32_bumpkey ( vsmc_philox4x32_par_t par)
static

Definition at line 125 of file philox.h.

static void vsmc_philox4x32_inc ( vsmc_philox4x32_ctr_t ctr)
static

Definition at line 95 of file philox.h.

static void vsmc_philox4x32_initpar ( const vsmc_philox4x32_key_t key,
vsmc_philox4x32_par_t par 
)
static

Definition at line 113 of file philox.h.

static void vsmc_philox4x32_round ( vsmc_philox4x32_ctr_t state,
const vsmc_philox4x32_par_t par 
)
static

Definition at line 148 of file philox.h.