Nsound  0.9.4
Macros
RngTausworthe.cc File Reference
#include <Nsound/RngTausworthe.h>
#include <cmath>
#include <ctime>
Include dependency graph for RngTausworthe.cc:

Go to the source code of this file.

Macros

#define MASK   0xffffffffUL
 
#define TAUSWORTHE(s, a, b, c, d)   (((s & c) << d) & MASK) ^ ((((s << a) & MASK) ^ s) >> b)
 
#define LCG(n)   ((69069 * n) & 0xffffffffUL)
 

Macro Definition Documentation

#define MASK   0xffffffffUL
#define TAUSWORTHE (   s,
  a,
  b,
  c,
 
)    (((s & c) << d) & MASK) ^ ((((s << a) & MASK) ^ s) >> b)
#define LCG (   n)    ((69069 * n) & 0xffffffffUL)