yosys-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
xorshift128 Struct Reference

Public Member Functions

 xorshift128 ()
 
uint32_t operator() ()
 

Data Fields

uint32_t x
 
uint32_t y
 
uint32_t z
 
uint32_t w
 

Detailed Description

Definition at line 23 of file testbench.cc.

Constructor & Destructor Documentation

xorshift128::xorshift128 ( )
inline

Definition at line 25 of file testbench.cc.

25  {
26  x = 123456789;
27  y = 362436069;
28  z = 521288629;
29  w = 88675123;
30  }
uint32_t z
Definition: testbench.cc:24
uint32_t w
Definition: testbench.cc:24
uint32_t x
Definition: testbench.cc:24
uint32_t y
Definition: testbench.cc:24

Member Function Documentation

uint32_t xorshift128::operator() ( )
inline

Definition at line 31 of file testbench.cc.

31  {
32  uint32_t t = x ^ (x << 11);
33  x = y; y = z; z = w;
34  w ^= (w >> 19) ^ t ^ (t >> 8);
35  return w;
36  }
uint32_t z
Definition: testbench.cc:24
uint32_t w
Definition: testbench.cc:24
uint32_t x
Definition: testbench.cc:24
uint32_t y
Definition: testbench.cc:24

Field Documentation

uint32_t xorshift128::w

Definition at line 24 of file testbench.cc.

uint32_t xorshift128::x

Definition at line 24 of file testbench.cc.

uint32_t xorshift128::y

Definition at line 24 of file testbench.cc.

uint32_t xorshift128::z

Definition at line 24 of file testbench.cc.


The documentation for this struct was generated from the following file: