MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / xorshift32

Function xorshift32

src/cputest.cpp:1780–1788  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1778
1779static uae_u32 xorshiftstate, xorshiftstate_prev;
1780static uae_u32 xorshift32(void)
1781{
1782 uae_u32 x = xorshiftstate;
1783 x ^= x << 13;
1784 x ^= x >> 17;
1785 x ^= x << 5;
1786 xorshiftstate = x;
1787 return xorshiftstate;
1788}
1789
1790static int rand16_cnt, rand16_cnt_prev;
1791static uae_u16 rand16(void)

Callers 5

rand16Function · 0.70
rand32Function · 0.70
rand8Function · 0.70
frand8Function · 0.70
fill_memory_bufferFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected