MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / xorshift64

Function xorshift64

nodedb-codec/src/vector_quant/rabitq.rs:43–50  ·  view source on GitHub ↗
(state: &mut u64)

Source from the content-addressed store, hash-verified

41/// Minimal xorshift64 PRNG for deterministic signed-diagonal generation.
42#[inline]
43fn xorshift64(state: &mut u64) -> u64 {
44 let mut x = *state;
45 x ^= x << 13;
46 x ^= x >> 7;
47 x ^= x << 17;
48 *state = x;
49 x
50}
51
52// ── WHT helpers ──────────────────────────────────────────────────────────────
53

Callers 3

apply_rotationMethod · 0.85
encode_innerMethod · 0.85
random_vecFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected