MCPcopy Create free account
hub / github.com/TanStack/db / _mix

Method _mix

packages/db-ivm/src/hashing/murmur.ts:45–52  ·  view source on GitHub ↗
(k1: number)

Source from the content-addressed store, hash-verified

43 private carryBytes = 0
44
45 private _mix(k1: number): void {
46 k1 = Math.imul(k1, 0xcc9e2d51)
47 k1 = (k1 << 15) | (k1 >>> 17)
48 k1 = Math.imul(k1, 0x1b873593)
49 this.hash ^= k1
50 this.hash = (this.hash << 13) | (this.hash >>> 19)
51 this.hash = Math.imul(this.hash, 5) + 0xe6546b64
52 }
53
54 writeByte(byte: number): void {
55 this.carry |= (byte & 0xff) << (8 * this.carryBytes)

Callers 1

writeByteMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected