#include <SFMT.h>
uint32_t LastInterval
Definition: SFMT.h:359
void RandomInit(int seed)
Definition: SFMT.h:168
#define SFMT_N
Definition: SFMT.h:76
unsigned int uint32_t
Definition: stdint.h:80
void Generate()
Definition: SFMT.h:333
__m128i state[SFMT_N]
Definition: SFMT.h:357
uint32_t ix
Definition: SFMT.h:358
G3D::int16 y
Definition: Vector2int16.h:38
void SFMTRand::Generate |
( |
| ) |
|
|
inlineprivate |
#define SFMT_N
Definition: SFMT.h:76
__m128i mask
Definition: SFMT.h:356
#define SFMT_M
Definition: SFMT.h:77
__m128i state[SFMT_N]
Definition: SFMT.h:357
uint32_t ix
Definition: SFMT.h:358
static __m128i sfmt_recursion(__m128i const &a, __m128i const &b, __m128i const &c, __m128i const &d, __m128i const &mask)
Definition: SFMT.h:138
300 mask = _mm_loadu_si128((__m128i*)maskinit);
308 for (i = 0; i < 4; i++)
311 for (i = 16; i > 0; i >>= 1) temp ^= temp >> i;
315 for (i = 0; i < 4; i++) {
317 for (j = 1; j; j <<= 1) {
318 if (parityvec[i] & j) {
__m128i mask
Definition: SFMT.h:356
unsigned int uint32_t
Definition: stdint.h:80
void Generate()
Definition: SFMT.h:333
#define SFMT_PARITY
Definition: SFMT.h:83
__m128i state[SFMT_N]
Definition: SFMT.h:357
#define SFMT_MASK
Definition: SFMT.h:82
194 if (
max ==
min)
return min;
else return 0x80000000;
T max(const T &x, const T &y)
Definition: g3dmath.h:320
unsigned int uint32_t
Definition: stdint.h:80
T min(const T &x, const T &y)
Definition: g3dmath.h:305
unsigned __int64 uint64_t
Definition: stdint.h:90
uint32_t BRandom()
Definition: SFMT.h:240
signed int int32_t
Definition: stdint.h:77
void SFMTRand::operator delete |
( |
void * |
ptr, |
|
|
std::nothrow_t const & |
|
|
) |
| |
|
inline |
void SFMTRand::operator delete |
( |
void * |
ptr | ) |
|
|
inline |
void SFMTRand::operator delete[] |
( |
void * |
ptr, |
|
|
std::nothrow_t const & |
|
|
) |
| |
|
inline |
void SFMTRand::operator delete[] |
( |
void * |
ptr | ) |
|
|
inline |
void* SFMTRand::operator new |
( |
size_t |
size, |
|
|
std::nothrow_t const & |
|
|
) |
| |
|
inline |
254 return _mm_malloc(size, 16);
void* SFMTRand::operator new |
( |
size_t |
size | ) |
|
|
inline |
264 return _mm_malloc(size, 16);
void* SFMTRand::operator new[] |
( |
size_t |
size, |
|
|
std::nothrow_t const & |
|
|
) |
| |
|
inline |
274 return _mm_malloc(size, 16);
void* SFMTRand::operator new[] |
( |
size_t |
size | ) |
|
|
inline |
284 return _mm_malloc(size, 16);
double SFMTRand::Random |
( |
| ) |
|
|
inline |
237 return (
int64_t)(r >> 12) * (1./(67108864.0*67108864.0));
#define SFMT_N
Definition: SFMT.h:76
signed __int64 int64_t
Definition: stdint.h:89
unsigned int uint32_t
Definition: stdint.h:80
void Generate()
Definition: SFMT.h:333
unsigned __int64 uint64_t
Definition: stdint.h:90
__m128i state[SFMT_N]
Definition: SFMT.h:357
uint32_t ix
Definition: SFMT.h:358
void SFMTRand::RandomInit |
( |
int |
seed | ) |
|
|
inline |
178 const uint32_t factor = 1812433253U;
180 for (i = 1; i < statesize; i++) {
181 y = factor * (y ^ (y >> 30)) + i;
#define SFMT_N
Definition: SFMT.h:76
unsigned int uint32_t
Definition: stdint.h:80
void Init2()
Definition: SFMT.h:293
__m128i state[SFMT_N]
Definition: SFMT.h:357
G3D::int16 y
Definition: Vector2int16.h:38
213 if (
max ==
min)
return min;
else return 0;
T max(const T &x, const T &y)
Definition: g3dmath.h:320
unsigned int uint32_t
Definition: stdint.h:80
T min(const T &x, const T &y)
Definition: g3dmath.h:305
unsigned __int64 uint64_t
Definition: stdint.h:90
uint32_t BRandom()
Definition: SFMT.h:240
__m128i SFMTRand::state[SFMT_N] |
|
private |
The documentation for this class was generated from the following file: