MCPcopy Create free account
hub / github.com/apache/fory / _mix64

Function _mix64

python/pyfory/context.py:42–49  ·  view source on GitHub ↗
(x: int)

Source from the content-addressed store, hash-verified

40
41
42def _mix64(x: int) -> int:
43 x &= 0xFFFFFFFFFFFFFFFF
44 x ^= x >> 33
45 x = (x * 0xFF51AFD7ED558CCD) & 0xFFFFFFFFFFFFFFFF
46 x ^= x >> 33
47 x = (x * 0xC4CEB9FE1A85EC53) & 0xFFFFFFFFFFFFFFFF
48 x ^= x >> 33
49 return x
50
51
52def hash_small_metastring(v1: int, v2: int, length: int, encoding: int) -> int:

Callers 1

hash_small_metastringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected