MCPcopy Create free account
hub / github.com/ARM-software/astc-encoder / rand

Method rand

Source/astcenc_mathlib.cpp:39–48  ·  view source on GitHub ↗

See header for documentation. */

Source from the content-addressed store, hash-verified

37
38/* See header for documentation. */
39uint64_t astc::rand(uint64_t state[2])
40{
41 uint64_t s0 = state[0];
42 uint64_t s1 = state[1];
43 uint64_t res = s0 + s1;
44 s1 ^= s0;
45 state[0] = rotl(s0, 24) ^ s1 ^ (s1 << 16);
46 state[1] = rotl(s1, 37);
47 return res;
48}

Callers

nothing calls this directly

Calls 1

rotlFunction · 0.85

Tested by

no test coverage detected