php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
PMurHash.h
Go to the documentation of this file.
1/*-----------------------------------------------------------------------------
2 * MurmurHash3 was written by Austin Appleby, and is placed in the public
3 * domain.
4 *
5 * This implementation was written by Shane Day, and is also public domain.
6 *
7 * This implementation was modified to match PMurHash128.cpp.
8 */
9
10/* ------------------------------------------------------------------------- */
11
12// Microsoft Visual Studio
13
14#if defined(_MSC_VER) && (_MSC_VER < 1600)
15
16typedef unsigned char uint8_t;
17typedef unsigned int uint32_t;
18
19// Other compilers
20
21#else // defined(_MSC_VER)
22
23#include <stdint.h>
24
25#endif // !defined(_MSC_VER)
26
27/* ------------------------------------------------------------------------- */
28/* Prototypes */
29
30void PMurHash32_Process(uint32_t *ph1, uint32_t *pcarry, const void *key, int len);
31uint32_t PMurHash32_Result(uint32_t h1, uint32_t carry, uint32_t total_length);
uint32_t PMurHash32_Result(uint32_t h1, uint32_t carry, uint32_t total_length)
Definition PMurHash.c:208
void PMurHash32_Process(uint32_t *ph1, uint32_t *pcarry, const void *key, int len)
Definition PMurHash.c:123
size_t len
Definition apprentice.c:174
unsigned char key[REFLECTION_KEY_LEN]