MCPcopy Create free account
hub / github.com/Niko1221/Strata / rnd

Function rnd

engine/src/split/tools/convert_parallel_test.cpp:34–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32
33uint64_t rng_state = 0x9E3779B97F4A7C15ull;
34uint32_t rnd() {
35 rng_state ^= rng_state << 13;
36 rng_state ^= rng_state >> 7;
37 rng_state ^= rng_state << 17;
38 return (uint32_t) (rng_state >> 11);
39}
40uint16_t bf16_of(float f) {
41 uint32_t u;
42 std::memcpy(&u, &f, 4);

Callers 3

bf16_matrixFunction · 0.70
q6k_matrixFunction · 0.70
rawFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected