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

Method next

engine/src/quant/selfcheck.cpp:18–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16 uint64_t s;
17 explicit Rng(uint64_t seed) : s(seed * 0x9E3779B97F4A7C15ull + 0x1234567ull) {}
18 uint32_t next() { // xorshift64*
19 s ^= s >> 12;
20 s ^= s << 25;
21 s ^= s >> 27;
22 return (uint32_t) ((s * 0x2545F4914F6CDD1Dull) >> 32);
23 }
24};
25
26constexpr uint16_t kH1 = 0x3C00, kH05 = 0x3800; // fp16 1.0 and 0.5

Callers 3

make_weightsFunction · 0.45
make_actFunction · 0.45
check_actFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected