Created
January 8, 2022 15:39
-
-
Save MCarlomagno/e4e97baf93106791348ebc7cd83bbe1e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
uint64_t pack_hash(checksum256 hash) | |
{ | |
const uint64_t *p64 = reinterpret_cast<const uint64_t *>(&hash); | |
return p64[0] ^ p64[1] ^ p64[2] ^ p64[3]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment