mirror of
https://git.stillkill.net/MinecraftLeak/Mc-cpp-Snapshot.git
synced 2026-10-22 13:22:19 +01:00
Initial commit
This commit is contained in:
commit
a9c1b8fcb6
2100 files changed
+610164
No files matched your search
@@ -0,0 +1,17 @@
|
||||
#ifndef __SUPER_FAST_HASH_H
|
||||
#define __SUPER_FAST_HASH_H
|
||||
|
||||
#include <stdio.h>
|
||||
#include "NativeTypes.h"
|
||||
|
||||
// From http://www.azillionmonkeys.com/qed/hash.html
|
||||
// Author of main code is Paul Hsieh
|
||||
// I just added some convenience functions
|
||||
// Also note http://burtleburtle.net/bob/hash/doobs.html, which shows that this is 20% faster than the one on that page but has more collisions
|
||||
|
||||
uint32_t SuperFastHash (const char * data, int length);
|
||||
uint32_t SuperFastHashIncremental (const char * data, int len, unsigned int lastHash );
|
||||
uint32_t SuperFastHashFile (const char * filename);
|
||||
uint32_t SuperFastHashFilePtr (FILE *fp);
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user