slm: OpenCL code base  0.1
Macros | Functions
rng.cl File Reference

Lehmer linear-congruential random number generator functions (uint and float2 vector) More...

Go to the source code of this file.

Macros

#define IS_RNG_AVAILABLE   1
 Flag whether this RNG is included in the kernel source: the jittered streamline integration function compute_step_vec_jittered() is not compiled unless the flag is set. More...
 

Functions

static uint lehmer_rand_uint (uint *rng_state)
 Generate a Lehmer (linear congruential) integer random variate. More...
 
static float2 lehmer_rand_vec (uint *rng_state)
 Generate a Lehmer RNG float2 vector random variate \([-0.5,0.5)\times 2\). More...
 

Detailed Description

Lehmer linear-congruential random number generator functions (uint and float2 vector)

Author
CPS
Bug:
No known bugs

Definition in file rng.cl.

Macro Definition Documentation

◆ IS_RNG_AVAILABLE

#define IS_RNG_AVAILABLE   1

Flag whether this RNG is included in the kernel source: the jittered streamline integration function compute_step_vec_jittered() is not compiled unless the flag is set.

Definition at line 14 of file rng.cl.