X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvppinfra%2Fcuckoo_8_8.h;h=6fe334da32d60376e11a80fd746cdcb5b532fa4f;hb=e906aacc1089ce86158486ec52d37a8470359ec2;hp=127e4e5b76d89d36a6b7923d2f77d64775f6adfc;hpb=470a011511a41dcb893df12b33261030717d1e08;p=vpp.git diff --git a/src/vppinfra/cuckoo_8_8.h b/src/vppinfra/cuckoo_8_8.h index 127e4e5b76d..6fe334da32d 100644 --- a/src/vppinfra/cuckoo_8_8.h +++ b/src/vppinfra/cuckoo_8_8.h @@ -39,7 +39,9 @@ #define CLIB_CUCKOO_OPTIMIZE_UNROLL 1 #define CLIB_CUCKOO_OPTIMIZE_USE_COUNT_LIMITS_SEARCH 1 +#if __SSE4_2__ && !defined (__i386__) #include +#endif /** 8 octet key, 8 octet key value pair */ typedef struct @@ -89,8 +91,8 @@ format_cuckoo_kvp_8_8 (u8 * s, va_list * args) always_inline u64 clib_cuckoo_hash_8_8 (clib_cuckoo_kv_8_8_t * v) { -#if __SSE4_2__ && !defined (__i386__) - return _mm_crc32_u64 (0, v->key); +#if defined(clib_crc32c_uses_intrinsics) && !defined (__i386__) + return crc32_u64 (0, v->key); #else return clib_xxhash (v->key); #endif