Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

mt19937rng.cpp File Reference

#include "mt19937rng.h"

Go to the source code of this file.

Defines

#define MATRIX_A   0x9908b0dfUL /* constant vector a */
#define UMASK   0x80000000UL /* most significant w-r bits */
#define LMASK   0x7fffffffUL /* least significant r bits */
#define MIXBITS(u, v)   ( ((u) & UMASK) | ((v) & LMASK) )
#define TWIST(u, v)   ((MIXBITS(u,v) >> 1) ^ ((v)&1UL ? MATRIX_A : 0UL))


Define Documentation

#define LMASK   0x7fffffffUL /* least significant r bits */
 

Definition at line 77 of file mt19937rng.cpp.

#define MATRIX_A   0x9908b0dfUL /* constant vector a */
 

Definition at line 73 of file mt19937rng.cpp.

#define MIXBITS u,
 )     ( ((u) & UMASK) | ((v) & LMASK) )
 

Definition at line 79 of file mt19937rng.cpp.

#define TWIST u,
 )     ((MIXBITS(u,v) >> 1) ^ ((v)&1UL ? MATRIX_A : 0UL))
 

Definition at line 80 of file mt19937rng.cpp.

#define UMASK   0x80000000UL /* most significant w-r bits */
 

Definition at line 75 of file mt19937rng.cpp.


Generated on Tue May 11 01:31:53 2004 for toxic by doxygen 1.3.6