MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / hashmix

Function hashmix

src/ast/ast_typedecl.cpp:473–480  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

471 // semantic hash
472
473 __forceinline uint64_t hashmix ( uint64_t hash, uint64_t key ) {
474 hash ^= key;
475 hash *= UINT64_C(0x9e3779b97f4a7c15);
476 hash ^= rotr64_c(hash,31);
477 hash *= UINT64_C(0x9e3779b97f4a7c15);
478 hash ^= rotr64_c(hash, 28);
479 return hash;
480 }
481
482 // Save/clear/restore the lazy findAlias cache bits (PR #2849) so they don't
483 // enter the lookup/semantic hash. The bits reflect runtime cache state, not

Callers 1

getLookupHashMethod · 0.85

Calls 1

rotr64_cFunction · 0.85

Tested by

no test coverage detected