Logo Search packages:      
Sourcecode: gretl version File versions  Download package

SFMT.h File Reference

SIMD oriented Fast Mersenne Twister(SFMT) pseudorandom number generator. More...

#include <stdio.h>
#include <inttypes.h>
Include dependency graph for SFMT.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define ALWAYSINLINE
#define PRE_ALWAYS   inline

Functions

void fill_array32 (uint32_t *array, int size)
void fill_array64 (uint64_t *array, int size)
uint32_t gen_rand32 (void)
uint64_t gen_rand64 (void)
static double genrand_real1 (void)
static double genrand_real2 (void)
static double genrand_real3 (void)
static double genrand_res53 (void)
static double genrand_res53_mix (void)
const char * get_idstring (void)
int get_min_array_size32 (void)
int get_min_array_size64 (void)
void init_by_array (uint32_t *init_key, int key_length)
void init_gen_rand (uint32_t seed)
static double to_real1 (uint32_t v)
static double to_real2 (uint32_t v)
static double to_real3 (uint32_t v)
static double to_res53 (uint64_t v)
static double to_res53_mix (uint32_t x, uint32_t y)

Detailed Description

SIMD oriented Fast Mersenne Twister(SFMT) pseudorandom number generator.

Author:
Mutsuo Saito (Hiroshima University)
Makoto Matsumoto (Hiroshima University)

Copyright (C) 2006, 2007 Mutsuo Saito, Makoto Matsumoto and Hiroshima University. All rights reserved.

The new BSD License is applied to this software. see LICENSE.txt

Note:
We assume that your system has inttypes.h. If your system doesn't have inttypes.h, you have to typedef uint32_t and uint64_t, and you have to define PRIu64 and PRIx64 in this file as follows:
 typedef unsigned int uint32_t
 typedef unsigned long long uint64_t  
 #define PRIu64 "llu"
 #define PRIx64 "llx"
uint32_t must be exactly 32-bit unsigned integer type (no more, no less), and uint64_t must be exactly 64-bit unsigned integer type. PRIu64 and PRIx64 are used for printf function to print 64-bit unsigned int and 64-bit unsigned int in hexadecimal format.

Definition in file SFMT.h.


Generated by  Doxygen 1.6.0   Back to index