Some edits
[c11tester.git] / hashfunction.cc
index eca9cafa56ccd62826608a9f58c8870a63ce6e62..b41dc032e6645ee106edfa1fabdbdf2f76917ca6 100644 (file)
@@ -1,6 +1,9 @@
 #include "hashfunction.h"
 
-/* Hash function for 64-bit integers */
+/** 
+ * Hash function for 64-bit integers
+ * https://gist.github.com/badboy/6267743#64-bit-to-32-bit-hash-functions
+ */
 unsigned int int64_hash(uint64_t key) {
        key = (~key) + (key << 18); // key = (key << 18) - key - 1;
        key = key ^ (key >> 31);