vppinfra: fix issue with bihash_8_8 hash function (VPP-518)
Change-Id: Ia9a484575d0142e89ec5b6b4c6c2e702e1098a1e Signed-off-by: Damjan Marion <damarion@cisco.com>
This commit is contained in:
@ -54,7 +54,7 @@ static inline u64
|
|||||||
clib_bihash_hash_8_8 (clib_bihash_kv_8_8_t * v)
|
clib_bihash_hash_8_8 (clib_bihash_kv_8_8_t * v)
|
||||||
{
|
{
|
||||||
#if __SSE4_2__
|
#if __SSE4_2__
|
||||||
return _mm_crc32_u64 (v->key, 0);
|
return _mm_crc32_u64 (0, v->key);
|
||||||
#else
|
#else
|
||||||
return clib_xxhash (v->key);
|
return clib_xxhash (v->key);
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user