posix_randr.c File Reference

A POSIX Random Number Generator for multi-threaded applications. More...

#include <math.h>
#include <stdio.h>
#include "posix_randr.h"
#include <stdlib.h>
#include "fastmath.h"
Include dependency graph for posix_randr.c:
This graph shows which files directly or indirectly include this file:

Defines

#define LOG_MT_MAX   22.1807097779182f

Functions

__device__ float rand_uniform01 (RandType t[RAND_BUF_LEN])
__device__ void rng_init (RandType t[RAND_BUF_LEN], RandType tnew[RAND_BUF_LEN], uint *n_seed, int idx)
__device__ void rand_need_more (RandType t[RAND_BUF_LEN], RandType tbuf[RAND_BUF_LEN])
__device__ float rand_next_scatlen (RandType t[RAND_BUF_LEN])
__device__ float rand_next_aangle (RandType t[RAND_BUF_LEN])
__device__ float rand_next_zangle (RandType t[RAND_BUF_LEN])
__device__ float rand_next_reflect (RandType t[RAND_BUF_LEN])
__device__ float rand_do_roulette (RandType t[RAND_BUF_LEN])

Detailed Description

A POSIX Random Number Generator for multi-threaded applications.

 All Classes Files Functions Variables
Generated on Wed Dec 15 18:02:15 2010 by  doxygen 1.6.3