28 int i4_huge = 2147483647;
34 *seed = 16807 * ( *seed - k * 127773 ) - k * 2836;
39 *seed = *seed + i4_huge;
42 r = ((unsigned)(*seed & 0xFFFF));
57 p.
x = 0; p.
y = 0; p.
z = 0;
109 const int n_threads = omp_get_num_threads();
111 const int thread_id = omp_get_thread_num();
115 const int offset = 0;
118 for (i = 0; i <
max; i++)
133 printf(
"Result: %d\n", sum);
137 printf(
"RESULT: PASS\n");
141 printf(
"RESULT: FAIL\n");
fixedpt fixedpt_sqrt(fixedpt A)
const fixedpt shells_per_mfp
fixedpt fixedpt_ln(fixedpt x)
static const uint32_t k[]
void processPhoton(int seed)
const fixedpt microns_per_shell
fixedpt get_uniform_fixed(int *seed)
unsigned offset[NUM_VERTICES+1]
fixedpt fixedpt_mul(fixedpt A, fixedpt B)
fixedpt fixedpt_div(fixedpt A, fixedpt B)
x
Return the smallest n such that 2^n >= _x.
#define SHELL_MAX
Tiny MCML benchmark.