proxygen
|
#include <SpookyHashV1.h>
Public Member Functions | |
void | Init (uint64_t seed1, uint64_t seed2) |
void | Update (const void *message, size_t length) |
void | Final (uint64_t *hash1, uint64_t *hash2) |
Static Public Member Functions | |
static void | Hash128 (const void *message, size_t length, uint64_t *hash1, uint64_t *hash2) |
static uint64_t | Hash64 (const void *message, size_t length, uint64_t seed) |
static uint32_t | Hash32 (const void *message, size_t length, uint32_t seed) |
static uint64_t | Rot64 (uint64_t x, int k) |
static void | Mix (const uint64_t *data, uint64_t &s0, uint64_t &s1, uint64_t &s2, uint64_t &s3, uint64_t &s4, uint64_t &s5, uint64_t &s6, uint64_t &s7, uint64_t &s8, uint64_t &s9, uint64_t &s10, uint64_t &s11) |
static void | EndPartial (uint64_t &h0, uint64_t &h1, uint64_t &h2, uint64_t &h3, uint64_t &h4, uint64_t &h5, uint64_t &h6, uint64_t &h7, uint64_t &h8, uint64_t &h9, uint64_t &h10, uint64_t &h11) |
static void | End (uint64_t &h0, uint64_t &h1, uint64_t &h2, uint64_t &h3, uint64_t &h4, uint64_t &h5, uint64_t &h6, uint64_t &h7, uint64_t &h8, uint64_t &h9, uint64_t &h10, uint64_t &h11) |
static void | ShortMix (uint64_t &h0, uint64_t &h1, uint64_t &h2, uint64_t &h3) |
static void | ShortEnd (uint64_t &h0, uint64_t &h1, uint64_t &h2, uint64_t &h3) |
Static Private Member Functions | |
static void | Short (const void *message, size_t length, uint64_t *hash1, uint64_t *hash2) |
Private Attributes | |
uint64_t | m_data [2 *sc_numVars] |
uint64_t | m_state [sc_numVars] |
size_t | m_length |
uint8_t | m_remainder |
Static Private Attributes | |
static const size_t | sc_numVars = 12 |
static const size_t | sc_blockSize = sc_numVars*8 |
static const size_t | sc_bufSize = 2*sc_blockSize |
static const uint64_t | sc_const = 0xdeadbeefdeadbeefULL |
Definition at line 55 of file SpookyHashV1.h.
|
inlinestatic |
Definition at line 196 of file SpookyHashV1.h.
References EndPartial().
Referenced by Final(), and Hash128().
|
inlinestatic |
Definition at line 177 of file SpookyHashV1.h.
References Rot64().
Referenced by End().
Definition at line 340 of file SpookyHashV1.cpp.
References folly::data(), End(), m_data, m_length, m_remainder, m_state, Mix(), sc_blockSize, sc_bufSize, sc_numVars, Short(), uint64_t, and uint8_t.
Referenced by Hash32().
|
static |
Definition at line 161 of file SpookyHashV1.cpp.
References ALLOW_UNALIGNED_READS, folly::test::end(), End(), i, message, Mix(), sc_blockSize, sc_bufSize, sc_const, sc_numVars, Short(), uint64_t, and uint8_t.
Referenced by Hash32(), and Hash64().
|
inlinestatic |
Definition at line 83 of file SpookyHashV1.h.
References Final(), Hash128(), Init(), seed, uint32_t, uint64_t, and Update().
|
inlinestatic |
Definition at line 70 of file SpookyHashV1.h.
References Hash128(), seed, and uint64_t.
Definition at line 226 of file SpookyHashV1.cpp.
References m_length, m_remainder, and m_state.
Referenced by Hash32().
|
inlinestatic |
Definition at line 141 of file SpookyHashV1.h.
References Rot64().
Referenced by Final(), Hash128(), and Update().
Definition at line 123 of file SpookyHashV1.h.
References k.
Referenced by EndPartial(), Mix(), ShortEnd(), and ShortMix().
|
staticprivate |
Definition at line 44 of file SpookyHashV1.cpp.
References a, ALLOW_UNALIGNED_READS, b, c, folly::test::end(), FOLLY_FALLTHROUGH, i, sc_const, sc_numVars, ShortEnd(), ShortMix(), uint32_t, uint64_t, and uint8_t.
Referenced by Final(), Hash128(), and ShortEnd().
|
inlinestatic |
Definition at line 250 of file SpookyHashV1.h.
References Rot64(), Short(), and uint64_t.
Referenced by Short().
|
inlinestatic |
Definition at line 221 of file SpookyHashV1.h.
References Rot64().
Referenced by Short().
void folly::hash::SpookyHashV1::Update | ( | const void * | message, |
size_t | length | ||
) |
Definition at line 236 of file SpookyHashV1.cpp.
References ALLOW_UNALIGNED_READS, folly::test::end(), i, m_data, m_length, m_remainder, m_state, Mix(), prefix(), sc_blockSize, sc_bufSize, sc_const, sc_numVars, uint64_t, and uint8_t.
Referenced by Hash32().
|
private |
Definition at line 298 of file SpookyHashV1.h.
|
private |
Definition at line 300 of file SpookyHashV1.h.
|
private |
Definition at line 301 of file SpookyHashV1.h.
|
private |
Definition at line 299 of file SpookyHashV1.h.
|
staticprivate |
Definition at line 284 of file SpookyHashV1.h.
|
staticprivate |
Definition at line 287 of file SpookyHashV1.h.
|
staticprivate |
Definition at line 296 of file SpookyHashV1.h.
|
staticprivate |