Skip to content

Commit

Permalink
khashv32 WIP WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
darkk committed Sep 26, 2024
1 parent 3464f16 commit f6babf8
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -761,15 +761,10 @@ HashInfo g_hashes[] =
{ nmhash32_test, 32, 0x12A30553, "nmhash32", nmhash32_ver, GOOD, {}},
{ nmhash32x_test, 32, 0xA8580227, "nmhash32x", nmhash32x_ver, GOOD, {}},
#ifdef HAVE_KHASHV
#ifdef __clang__ // also gcc 9.4
#define KHASHV32_VERIF 0xB69DF8EB
#define KHASHV64_VERIF 0xA6B7E55B
#else // new gcc-11
#define KHASHV32_VERIF 0 /* 0x9A8F7952 */
#define KHASHV64_VERIF 0 /* 0X90A2A4F9 */
#endif
{ khashv32_test, 32, KHASHV32_VERIF, "k-hashv32", "Vectorized K-HashV, 32-bit", GOOD, {}},
{ khashv64_test, 64, KHASHV64_VERIF, "k-hashv64", "Vectorized K-HashV, 64-bit", GOOD, {}},
// There are certain GCC versions producing 0x9A8F7952 and 0X90A2A4F9 as verification values
// for k-hashv32 and k-hashv64. That deserves further investigation.
{ khashv32_test, 32, 0xB69DF8EB, "k-hashv32", khashv32_desc, GOOD, {}},
{ khashv64_test, 64, 0xA6B7E55B, "k-hashv64", khashv64_desc, GOOD, {}},
#endif
{ komihash_test, 64, 0x8157FF6D, "komihash", "komihash 5.10", GOOD, {} },
{ polymur_test, 64, 0x4F894810, "polymur", "github.com/orlp/polymur-hash v1, __SIZEOF_INT128__:" MACRO_ITOA(__SIZEOF_INT128__), GOOD, {} },
Expand Down

0 comments on commit f6babf8

Please sign in to comment.