SFMT-sse2.h File Reference

SIMD oriented Fast Mersenne Twister(SFMT) for Intel SSE2. More...

Go to the source code of this file.

Functions

static PRE_ALWAYS __m128i mm_recursion (__m128i *a, __m128i *b, __m128i c, __m128i d, __m128i mask) ALWAYSINLINE
static void gen_rand_all (void)
static void gen_rand_array (w128_t *array, int size)


Detailed Description

SIMD oriented Fast Mersenne Twister(SFMT) for Intel SSE2.

Author:
Mutsuo Saito (Hiroshima University)

Makoto Matsumoto (Hiroshima University)

Note:
We assume LITTLE ENDIAN in this file
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

Definition in file SFMT-sse2.h.


Function Documentation

static void gen_rand_all ( void   )  [inline, static]

This function fills the internal state array with pseudorandom integers.

Definition at line 52 of file SFMT-sse2.h.

References mm_recursion(), MSK1, MSK2, MSK3, MSK4, N, POS1, and sfmt.

static void gen_rand_array ( w128_t array,
int  size 
) [inline, static]

This function fills the user-specified array with pseudorandom integers.

Parameters:
array an 128-bit array to be filled by pseudorandom numbers.
size number of 128-bit pesudorandom numbers to be generated.

Definition at line 80 of file SFMT-sse2.h.

References mm_recursion(), MSK1, MSK2, MSK3, MSK4, N, POS1, and sfmt.

static PRE_ALWAYS __m128i mm_recursion ( __m128i *  a,
__m128i *  b,
__m128i  c,
__m128i  d,
__m128i  mask 
) [static]

This function represents the recursion formula.

Parameters:
a a 128-bit part of the interal state array
b a 128-bit part of the interal state array
c a 128-bit part of the interal state array
d a 128-bit part of the interal state array
mask 128-bit mask
Returns:
output

Definition at line 31 of file SFMT-sse2.h.

References SL1, SL2, SR1, and SR2.

Referenced by gen_rand_all(), and gen_rand_array().


Generated on Sat Aug 15 19:14:40 2009 for lux by  doxygen 1.5.9