TProcuraAdversa
Algoritmos de procura adversa
Loading...
Searching...
No Matches
TRand.cpp File Reference
#include <time.h>
#include "TRand.h"
Include dependency graph for TRand.cpp:

Go to the source code of this file.

Macros

#define N   27
 
#define M   7
 
#define MATRIX_A   0x9908b0df /* constant vector a */
 
#define UPPER_MASK   0x80000000 /* most significant w-r bits */
 
#define LOWER_MASK   0x7fffffff /* least significant r bits */
 
#define TEMPERING_MASK_B   0x9d2c5680
 
#define TEMPERING_MASK_C   0xefc60000
 
#define TEMPERING_SHIFT_U(y)   (y >> 11)
 
#define TEMPERING_SHIFT_S(y)   (y << 7)
 
#define TEMPERING_SHIFT_T(y)   (y << 15)
 
#define TEMPERING_SHIFT_L(y)   (y >> 18)
 

Macro Definition Documentation

◆ LOWER_MASK

#define LOWER_MASK   0x7fffffff /* least significant r bits */

Definition at line 16 of file TRand.cpp.

◆ M

#define M   7

Definition at line 13 of file TRand.cpp.

◆ MATRIX_A

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

Definition at line 14 of file TRand.cpp.

◆ N

#define N   27

Definition at line 12 of file TRand.cpp.

◆ TEMPERING_MASK_B

#define TEMPERING_MASK_B   0x9d2c5680

Definition at line 19 of file TRand.cpp.

◆ TEMPERING_MASK_C

#define TEMPERING_MASK_C   0xefc60000

Definition at line 20 of file TRand.cpp.

◆ TEMPERING_SHIFT_L

#define TEMPERING_SHIFT_L (   y)    (y >> 18)

Definition at line 24 of file TRand.cpp.

◆ TEMPERING_SHIFT_S

#define TEMPERING_SHIFT_S (   y)    (y << 7)

Definition at line 22 of file TRand.cpp.

◆ TEMPERING_SHIFT_T

#define TEMPERING_SHIFT_T (   y)    (y << 15)

Definition at line 23 of file TRand.cpp.

◆ TEMPERING_SHIFT_U

#define TEMPERING_SHIFT_U (   y)    (y >> 11)

Definition at line 21 of file TRand.cpp.

◆ UPPER_MASK

#define UPPER_MASK   0x80000000 /* most significant w-r bits */

Definition at line 15 of file TRand.cpp.