InfiniSQL
v0.1.2-alpha
Massive Scale Transaction Processing
|
#include <spooky.h>
Public Member Functions | |
void | Init (uint64 seed1, uint64 seed2) |
void | Update (const void *message, size_t length) |
void | Final (uint64 *hash1, uint64 *hash2) |
Static Public Member Functions | |
static void | Hash128 (const void *message, size_t length, uint64 *hash1, uint64 *hash2) |
static uint64 | Hash64 (const void *message, size_t length, uint64 seed) |
static uint32 | Hash32 (const void *message, size_t length, uint32 seed) |
static INLINE uint64 | Rot64 (uint64 x, int k) |
static INLINE void | Mix (const uint64 *data, uint64 &s0, uint64 &s1, uint64 &s2, uint64 &s3, uint64 &s4, uint64 &s5, uint64 &s6, uint64 &s7, uint64 &s8, uint64 &s9, uint64 &s10, uint64 &s11) |
static INLINE void | EndPartial (uint64 &h0, uint64 &h1, uint64 &h2, uint64 &h3, uint64 &h4, uint64 &h5, uint64 &h6, uint64 &h7, uint64 &h8, uint64 &h9, uint64 &h10, uint64 &h11) |
static INLINE void | End (uint64 &h0, uint64 &h1, uint64 &h2, uint64 &h3, uint64 &h4, uint64 &h5, uint64 &h6, uint64 &h7, uint64 &h8, uint64 &h9, uint64 &h10, uint64 &h11) |
static INLINE void | ShortMix (uint64 &h0, uint64 &h1, uint64 &h2, uint64 &h3) |
static INLINE void | ShortEnd (uint64 &h0, uint64 &h1, uint64 &h2, uint64 &h3) |
Static Private Member Functions | |
static void | Short (const void *message, size_t length, uint64 *hash1, uint64 *hash2) |
Private Attributes | |
uint64 | m_data [2 *sc_numVars] |
uint64 | m_state [sc_numVars] |
size_t | m_length |
uint8 | 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 | sc_const = 0xdeadbeefdeadbeefLL |
|
inlinestatic |
Definition at line 270 of file spooky.h.
References EndPartial().
Referenced by Final(), and Hash128().
|
inlinestatic |
Definition at line 331 of file spooky.cc.
References End(), m_data, m_length, m_remainder, m_state, Mix(), sc_blockSize, sc_bufSize, sc_numVars, and Short().
|
static |
Definition at line 150 of file spooky.cc.
References ALLOW_UNALIGNED_READS, End(), Mix(), sc_blockSize, sc_bufSize, sc_const, sc_numVars, and Short().
Referenced by Hash32(), and Hash64().
Definition at line 72 of file spooky.h.
References Hash128().
Referenced by Transaction::getengine(), Transaction::getEngineid(), and getPartitionid().
Definition at line 215 of file spooky.cc.
References m_length, m_remainder, and m_state.
|
inlinestatic |
Definition at line 125 of file spooky.h.
Referenced by EndPartial(), Mix(), ShortEnd(), and ShortMix().
|
staticprivate |
Definition at line 27 of file spooky.cc.
References ALLOW_UNALIGNED_READS, sc_const, sc_numVars, ShortEnd(), and ShortMix().
Referenced by Final(), and Hash128().
|
inlinestatic |
|
inlinestatic |
void SpookyHash::Update | ( | const void * | message, |
size_t | length | ||
) |
Definition at line 225 of file spooky.cc.
References ALLOW_UNALIGNED_READS, m_data, m_length, m_remainder, m_state, Mix(), sc_blockSize, sc_bufSize, sc_const, and sc_numVars.
|
private |
|
private |
|
private |
|
private |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |