Skip to content

Commit

Permalink
WIP-MAC-2
Browse files Browse the repository at this point in the history
  • Loading branch information
darkk committed Sep 25, 2024
1 parent 26e895a commit c4a9514
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
8 changes: 1 addition & 7 deletions SuperFastHash.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,11 @@

FORCE_INLINE uint16_t get16bits ( const void * p )
{
#if 0
return *(const uint16_t*)p;
#else
const uint8_t *p8 = static_cast<const uint8_t *>(p);
return p8[0] | (p8[1] << 8);
#endif
}

// objsize: 0-d2: 210
uint32_t SuperFastHash (const char * data_, int len, uint32_t hash) {
const uint8_t *data(reinterpret_cast<const uint8_t *>(data_));
uint32_t SuperFastHash (const char * data, int len, uint32_t hash) {
uint32_t tmp;
int rem;

Expand Down
4 changes: 2 additions & 2 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -323,12 +323,12 @@ HashInfo g_hashes[] =
{ jodyhash64_test, 64, 0xC1CBFA34, "jodyhash64", "jodyhash, 64-bit (v7.1)", POOR, {} },
#endif
{ lookup3_test, 32, 0x3D83917A, "lookup3", "Bob Jenkins' lookup3", POOR, {0x21524101} /* !! */},
#ifdef __aarch64__
#if CHAR_MIN >= 0
#define SFAST_VERIF 0x6306A6FE
#else
#define SFAST_VERIF 0x0C80403A
#endif
{ SuperFastHash_test, 32, SFAST_VERIF,"superfast", "Paul Hsieh's SuperFastHash", POOR, {0x0} /* !! */},
{ SuperFastHash_test, 32, SFAST_VERIF,"superfast", "Paul Hsieh's SuperFastHash, CHAR_MIN:" MACRO_ITOA(CHAR_MIN), POOR, {0x0} /* !! */},
{ MurmurOAAT_test, 32, 0x5363BD98, "MurmurOAAT", "Murmur one-at-a-time", POOR,
{0x0 /*, 0x5bd1e995*/} /* !! */ },
{ Crap8_test, 32, 0x743E97A1, "Crap8", "Crap8", POOR, {/*0x83d2e73b, 0x97e1cc59*/} },
Expand Down

0 comments on commit c4a9514

Please sign in to comment.