7 fixedpt gaussR1 = 0, gaussR2 = 0;
13 for (
int i = 1; i <= n; i++ ) {
35 int i4_huge = 2147483647;
36 int k = *seed / 127773;
37 *seed = 16807 * ( *seed - k * 127773 ) - k * 2836;
39 *seed = *seed + i4_huge;
41 return *seed & 0x0000FFFF;
fixedpt fixedpt_sqrt(fixedpt A)
fixedpt get_uniform_fixed(int *seed)
fixedpt fixedpt_ln(fixedpt x)
static const uint32_t k[]
#define fixedpt_add(A, B)
fixedpt fixedpt_exp(fixedpt fp)
fixedpt fixedpt_mul(fixedpt A, fixedpt B)
fixedpt fixedpt_sin(fixedpt fp)
fixedpt fixedpt_div(fixedpt A, fixedpt B)
fixedpt asset_path_fixed_simplified(fixedpt s0, fixedpt mu, fixedpt sigma, fixedpt t1, int n, int *seed)
fixedpt fixedpt_cos(fixedpt A)
void get_two_normal_fixed(int *seed, fixedpt *n1, fixedpt *n2)
#define fixedpt_sub(A, B)