mirror of
https://gitea.sffnetwork.ru/Kolyah35/minecraft-pe-0.6.1.git
synced 2026-11-23 10:59:45 +00:00
the whole game
This commit is contained in:
parent
816e9060b4
commit
f0617a5d22
2069 changed files with 581500 additions and 0 deletions
17
src/raknet/SuperFastHash.h
Executable file
17
src/raknet/SuperFastHash.h
Executable file
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue