#include <cmath>
#include <cstdio>
#include <algorithm>
#include "oct-time.h"
#include "randmtzig.h"
Go to the source code of this file.
Namespaces | |
octave | |
Macros | |
#define | EMANTISSA 9007199254740992.0 /* 53 bit mantissa */ |
#define | EMANTISSA 4294967296.0 /* 32 bit mantissa */ |
#define | ERANDI randi53() /* 53 bits for mantissa */ |
#define | ERANDI randi32() /* 32 bits for mantissa */ |
#define | EXP_SECTION_AREA 0.0039496598225815571993 |
#define | LMASK 0x7fffffffUL /* least significant r bits */ |
#define | MATRIX_A 0x9908b0dfUL /* constant vector a */ |
#define | MIXBITS(u, v) ( ((u) & UMASK) | ((v) & LMASK) ) |
#define | MT_M 397 |
#define | NMANTISSA EMANTISSA |
#define | NMANTISSA 2147483648.0 /* 31 bit mantissa */ |
#define | NOR_SECTION_AREA 0.00492867323399 |
#define | NRANDI randi54() /* 53 bits for mantissa + 1 bit sign */ |
#define | NRANDI randi32() /* 31 bits for mantissa + 1 bit sign */ |
#define | randi32 randmt |
#define | RANDU randu53() |
#define | RANDU randu24() |
#define | TWIST(u, v) ((MIXBITS(u,v) >> 1) ^ ((v)&1UL ? MATRIX_A : 0UL)) |
#define | UMASK 0x80000000UL /* most significant w-r bits */ |
#define | USE_X86_32 0 |
#define | ZIGGURAT_EXP_INV_R 0.129918765548341586 |
#define | ZIGGURAT_EXP_R 7.69711747013104972 |
#define | ZIGGURAT_NOR_INV_R 0.27366123732975828 |
#define | ZIGGURAT_NOR_R 3.6541528853610088 |
#define | ZIGGURAT_TABLE_SIZE 256 |
#define | ZIGINT uint64_t |
#define | ZIGINT uint32_t |
Variables | |
static double | octave::fe [256] |
static float | octave::ffe [256] |
static float | octave::ffi [256] |
static double | octave::fi [256] |
static uint32_t | octave::fke [256] |
static uint32_t | octave::fki [256] |
static float | octave::fwe [256] |
static float | octave::fwi [256] |
static int | octave::initf = 0 |
static int | octave::initt = 1 |
static int | octave::inittf = 1 |
static uint64_t | octave::ke [256] |
static uint64_t | octave::ki [256] |
static int | octave::left = 1 |
static uint32_t * | octave::next |
static uint32_t | octave::state [624] |
static double | octave::we [256] |
static double | octave::wi [256] |
#define EMANTISSA 9007199254740992.0 /* 53 bit mantissa */ |
Definition at line 681 of file randmtzig.cc.
#define EMANTISSA 4294967296.0 /* 32 bit mantissa */ |
Definition at line 681 of file randmtzig.cc.
#define ERANDI randi53() /* 53 bits for mantissa */ |
Definition at line 682 of file randmtzig.cc.
Definition at line 682 of file randmtzig.cc.
#define EXP_SECTION_AREA 0.0039496598225815571993 |
Definition at line 437 of file randmtzig.cc.
#define LMASK 0x7fffffffUL /* least significant r bits */ |
Definition at line 185 of file randmtzig.cc.
#define MATRIX_A 0x9908b0dfUL /* constant vector a */ |
Definition at line 183 of file randmtzig.cc.
Definition at line 186 of file randmtzig.cc.
#define MT_M 397 |
Definition at line 182 of file randmtzig.cc.
#define NMANTISSA EMANTISSA |
Definition at line 683 of file randmtzig.cc.
#define NMANTISSA 2147483648.0 /* 31 bit mantissa */ |
Definition at line 683 of file randmtzig.cc.
#define NOR_SECTION_AREA 0.00492867323399 |
Definition at line 433 of file randmtzig.cc.
#define NRANDI randi54() /* 53 bits for mantissa + 1 bit sign */ |
Definition at line 684 of file randmtzig.cc.
Definition at line 684 of file randmtzig.cc.
#define randi32 randmt |
Definition at line 350 of file randmtzig.cc.
#define RANDU randu53() |
Definition at line 685 of file randmtzig.cc.
#define RANDU randu24() |
Definition at line 685 of file randmtzig.cc.
Definition at line 187 of file randmtzig.cc.
#define UMASK 0x80000000UL /* most significant w-r bits */ |
Definition at line 184 of file randmtzig.cc.
#define USE_X86_32 0 |
Definition at line 174 of file randmtzig.cc.
#define ZIGGURAT_EXP_INV_R 0.129918765548341586 |
Definition at line 436 of file randmtzig.cc.
#define ZIGGURAT_EXP_R 7.69711747013104972 |
Definition at line 435 of file randmtzig.cc.
#define ZIGGURAT_NOR_INV_R 0.27366123732975828 |
Definition at line 432 of file randmtzig.cc.
#define ZIGGURAT_NOR_R 3.6541528853610088 |
Definition at line 431 of file randmtzig.cc.
#define ZIGGURAT_TABLE_SIZE 256 |
Definition at line 429 of file randmtzig.cc.
#define ZIGINT uint64_t |
Definition at line 680 of file randmtzig.cc.
#define ZIGINT uint32_t |
Definition at line 680 of file randmtzig.cc.