mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-10-10 09:28:06 +00:00
Public release of the DLU server code!
Have fun!
This commit is contained in:
16
thirdparty/raknet/Source/SuperFastHash.h
vendored
Normal file
16
thirdparty/raknet/Source/SuperFastHash.h
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
#ifndef __SUPER_FAST_HASH_H
|
||||
#define __SUPER_FAST_HASH_H
|
||||
|
||||
#include <stdio.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
|
||||
|
||||
unsigned int SuperFastHash (const char * data, int length);
|
||||
unsigned int SuperFastHashIncremental (const char * data, int len, unsigned int lastHash );
|
||||
unsigned int SuperFastHashFile (const char * filename);
|
||||
unsigned int SuperFastHashFilePtr (FILE *fp);
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user