Classes | |
struct | rng_state_st |
Macros | |
#define | ARRAY_INDEX_OUT_OF_BOUNDS 0xFF01 |
#define | BITS 61 |
#define | ERROR_READING_STATE_CHECKSUM 0xFF05 |
#define | ERROR_READING_STATE_COUNTER 0xFF04 |
#define | ERROR_READING_STATE_FILE 0xFF03 |
#define | get_next(X) GET_BY_MACRO(X) |
#define | get_next_float(X) get_next_float_BY_MACRO(X) |
#define | INV_MERSBASE (0.4336808689942017736029811203479766845703E-18) |
#define | M61 2305843009213693951ULL |
#define | MERSBASE M61 |
#define | MOD_MERSENNE(k) MOD_PAYNE(k) |
#define | MOD_MULSPEC(k) fmodmulM61( 0, SPECIAL , (k) ) |
#define | MOD_PAYNE(k) ((((k)) & MERSBASE) + (((k)) >> BITS) ) |
#define | MOD_REM(k) ((k) % MERSBASE ) |
#define | N 240 |
#define | SEED_WAS_ZERO 0xFF02 |
#define | SPECIAL 487013230256099140ULL |
#define | SPECIALMUL 51 |
Typedefs | |
typedef uint32_t | myID_t |
typedef uint64_t | myuint |
typedef struct rng_state_st | rng_state_t |
Functions | |
myuint | apply_bigskip (myuint *Vout, myuint *Vin, myID_t clusterID, myID_t machineID, myID_t runID, myID_t streamID) |
void | branch_inplace (rng_state_t *Xin, myID_t *ID) |
void | fill_array (rng_state_t *X, unsigned int n, double *array) |
myuint | fmodmulM61 (myuint cum, myuint s, myuint a) |
myuint | GET_BY_MACRO (rng_state_t *X) |
double | get_next_float_BY_MACRO (rng_state_t *X) |
int | iterate (rng_state_t *X) |
void | iterate_and_fill_array (rng_state_t *X, double *array) |
myuint | iterate_raw_vec (myuint *Y, myuint sumtotOld) |
myuint | modadd (myuint foo, myuint bar) |
myuint | precalc (rng_state_t *X) |
void | print_state (rng_state_t *X) |
void | read_state (rng_state_t *X, const char filename[]) |
rng_state_t * | rng_alloc () |
rng_state_t * | rng_copy (myuint *Y) |
int | rng_free (rng_state_t *X) |
int | rng_get_N (void) |
void | seed_spbox (rng_state_t *X, myuint seed) |
void | seed_uniquestream (rng_state_t *X, myID_t clusterID, myID_t machineID, myID_t runID, myID_t streamID) |
void | seed_vielbein (rng_state_t *X, unsigned int i) |
#define get_next | ( | X | ) | GET_BY_MACRO(X) |
#define get_next_float | ( | X | ) | get_next_float_BY_MACRO(X) |
#define INV_MERSBASE (0.4336808689942017736029811203479766845703E-18) |
#define MOD_MULSPEC | ( | k | ) | fmodmulM61( 0, SPECIAL , (k) ) |
typedef struct rng_state_st rng_state_t |
myuint apply_bigskip | ( | myuint * | Vout, |
myuint * | Vin, | ||
myID_t | clusterID, | ||
myID_t | machineID, | ||
myID_t | runID, | ||
myID_t | streamID | ||
) |
Definition at line 398 of file mixmax.icc.
void branch_inplace | ( | rng_state_t * | Xin, |
myID_t * | ID | ||
) |
Definition at line 394 of file mixmax.icc.
void fill_array | ( | rng_state_t * | X, |
unsigned int | n, | ||
double * | array | ||
) |
Definition at line 85 of file mixmax.icc.
Definition at line 258 of file mixmax.icc.
|
inline |
|
inline |
int iterate | ( | rng_state_t * | X | ) |
Definition at line 34 of file mixmax.icc.
void iterate_and_fill_array | ( | rng_state_t * | X, |
double * | array | ||
) |
Definition at line 105 of file mixmax.icc.
Definition at line 47 of file mixmax.icc.
Definition at line 137 of file mixmax.icc.
myuint precalc | ( | rng_state_t * | X | ) |
Definition at line 228 of file mixmax.icc.
void print_state | ( | rng_state_t * | X | ) |
Definition at line 273 of file mixmax.icc.
void read_state | ( | rng_state_t * | X, |
const char | filename[] | ||
) |
Definition at line 286 of file mixmax.icc.
rng_state_t * rng_alloc | ( | ) |
Definition at line 154 of file mixmax.icc.
rng_state_t * rng_copy | ( | myuint * | Y | ) |
Definition at line 168 of file mixmax.icc.
int rng_free | ( | rng_state_t * | X | ) |
Definition at line 162 of file mixmax.icc.
int rng_get_N | ( | void | ) |
Definition at line 240 of file mixmax.icc.
void seed_spbox | ( | rng_state_t * | X, |
myuint | seed | ||
) |
Definition at line 205 of file mixmax.icc.
void seed_uniquestream | ( | rng_state_t * | X, |
myID_t | clusterID, | ||
myID_t | machineID, | ||
myID_t | runID, | ||
myID_t | streamID | ||
) |
Definition at line 361 of file mixmax.icc.
void seed_vielbein | ( | rng_state_t * | X, |
unsigned int | i | ||
) |
Definition at line 188 of file mixmax.icc.