NEURON
ACG.cpp File Reference
#include <../../nrnconf.h>
#include <stdio.h>
#include <ACG.h>
#include <assert.h>

Go to the source code of this file.

Macros

#define RANDOM_PERM_SIZE   64
 
#define SEED_TABLE_SIZE   32
 

Functions

static uint32_t LCG (uint32_t x)
 

Variables

static int randomStateTable [][3]
 
uint32_t randomPermutations [RANDOM_PERM_SIZE]
 
static uint32_t seedTable [SEED_TABLE_SIZE]
 
static const uint32_t LC_A = 66049
 
static const uint32_t LC_C = 3907864577U
 

Macro Definition Documentation

◆ RANDOM_PERM_SIZE

#define RANDOM_PERM_SIZE   64

Definition at line 127 of file ACG.cpp.

◆ SEED_TABLE_SIZE

#define SEED_TABLE_SIZE   32

Definition at line 153 of file ACG.cpp.

Function Documentation

◆ LCG()

static uint32_t LCG ( uint32_t  x)
inlinestatic

Definition at line 178 of file ACG.cpp.

Variable Documentation

◆ LC_A

const uint32_t LC_A = 66049
static

Definition at line 176 of file ACG.cpp.

◆ LC_C

const uint32_t LC_C = 3907864577U
static

Definition at line 177 of file ACG.cpp.

◆ randomPermutations

uint32_t randomPermutations[RANDOM_PERM_SIZE]
Initial value:
= {
0xffffffff, 0x00000000, 0x00000000, 0x00000000,
0x0000ffff, 0x00ff0000, 0x00000000, 0xff000000,
0xff0000ff, 0x0000ff00, 0x00000000, 0x00ff0000,
0x00ff00ff, 0x00000000, 0xff00ff00, 0x00000000,
0xffff0000, 0x000000ff, 0x00000000, 0x0000ff00,
0x00000000, 0x00ff00ff, 0x00000000, 0xff00ff00,
0xff000000, 0x00000000, 0x000000ff, 0x00ffff00,
0x00000000, 0x00000000, 0x00000000, 0xffffffff,
0xff00ff00, 0x00000000, 0x00ff00ff, 0x00000000,
0x0000ff00, 0x00000000, 0x00ff0000, 0xff0000ff,
0x00000000, 0x00000000, 0xffffffff, 0x00000000,
0x00000000, 0x0000ff00, 0xffff0000, 0x000000ff,
0x00000000, 0xffffffff, 0x00000000, 0x00000000,
0x00ffff00, 0xff000000, 0x00000000, 0x000000ff,
0x00000000, 0xff000000, 0x0000ffff, 0x00ff0000,
0x00000000, 0xff00ff00, 0x00000000, 0x00ff00ff
}

Definition at line 128 of file ACG.cpp.

◆ randomStateTable

int randomStateTable[][3]
static
Initial value:
= {
{3,7,16}, {4,9, 32}, {3,10, 32}, {1,11, 32}, {1,15,64}, {3,17,128},
{7,18,128}, {3,20,128}, {2,21, 128}, {1,22, 128}, {5,23, 128}, {3,25, 128},
{2,29, 128}, {3,31, 128}, {13,33, 256}, {2,35, 256}, {11,36, 256},
{14,39,256}, {3,41,256}, {9,49,256}, {3,52,256}, {24,55,256}, {7,57, 256},
{19,58,256}, {38,89,512}, {17,95,512}, {6,97,512}, {11,98,512}, {-1,-1,-1} }

Definition at line 115 of file ACG.cpp.

◆ seedTable

uint32_t seedTable[SEED_TABLE_SIZE]
static
Initial value:
= {
0xbdcc47e5, 0x54aea45d, 0xec0df859, 0xda84637b,
0xc8c6cb4f, 0x35574b01, 0x28260b7d, 0x0d07fdbf,
0x9faaeeb0, 0x613dd169, 0x5ce2d818, 0x85b9e706,
0xab2469db, 0xda02b0dc, 0x45c60d6e, 0xffe49d10,
0x7224fea3, 0xf9684fc9, 0xfc7ee074, 0x326ce92a,
0x366d13b5, 0x17aaa731, 0xeb83a675, 0x7781cb32,
0x4ec7c92d, 0x7f187521, 0x2cf346b4, 0xad13310f,
0xb89cff2b, 0x12164de1, 0xa865168d, 0x32b56cdf
}

Definition at line 154 of file ACG.cpp.