Microscopy Image Browser 2.91
MIB
Loading...
Searching...
No Matches
cokus.cpp File Reference

Macros

#define N   (624)
 
#define M   (397)
 
#define K   (0x9908B0DFU)
 
#define hiBit(u)
 
#define loBit(u)
 
#define loBits(u)
 
#define mixBits(u, v)
 

Functions

void seedMT (uint32 seed)
 
uint32 reloadMT (void)
 
uint32 randomMT (void)
 

Variables

static uint32 state [N+1]
 
static uint32next
 
static int left = -1
 

Macro Definition Documentation

◆ hiBit

#define hiBit ( u)
Value:
((u) & 0x80000000U)

◆ K

#define K   (0x9908B0DFU)

◆ loBit

#define loBit ( u)
Value:
((u) & 0x00000001U)

◆ loBits

#define loBits ( u)
Value:
((u) & 0x7FFFFFFFU)

◆ M

#define M   (397)

◆ mixBits

#define mixBits ( u,
v )
Value:
(hiBit(u)|loBits(v))
#define hiBit(u)
Definition cokus.cpp:60
#define loBits(u)
Definition cokus.cpp:62

◆ N

#define N   (624)

Function Documentation

◆ randomMT()

uint32 randomMT ( void )

References left, next, reloadMT(), and uint32.

Referenced by main(), and unif_rand().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ reloadMT()

uint32 reloadMT ( void )

References K, left, loBit, M, mixBits, N, next, seedMT(), state, and uint32.

Here is the call graph for this function:

◆ seedMT()

void seedMT ( uint32 seed)

References left, N, state, and uint32.

Referenced by classRF(), main(), and regRF().

Here is the caller graph for this function:

Variable Documentation

◆ left

int left = -1
static

◆ next

uint32* next
static

◆ state

uint32 state[N+1]
static