From: Yerden Zhumabekov Date: Thu, 29 Jan 2015 08:49:17 +0000 (+0600) Subject: hash: replace built-in functions implementing SSE4.2 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=e068294180af68727bcef98b1e756fe52ebe6316;p=dpdk.git hash: replace built-in functions implementing SSE4.2 Give up using built-in intrinsics and use our own assembly implementation. Remove #include entry as well. Signed-off-by: Yerden Zhumabekov Acked-by: Bruce Richardson --- diff --git a/lib/librte_hash/rte_hash_crc.h b/lib/librte_hash/rte_hash_crc.h index fe35996616..45b0dcedfa 100644 --- a/lib/librte_hash/rte_hash_crc.h +++ b/lib/librte_hash/rte_hash_crc.h @@ -45,7 +45,6 @@ extern "C" { #endif #include -#include /* Lookup tables for software implementation of CRC32C */ static const uint32_t crc32c_tables[8][256] = {{ @@ -410,7 +409,7 @@ crc32c_sse42_u64_mimic(uint64_t data, uint64_t init_val) static inline uint32_t rte_hash_crc_4byte(uint32_t data, uint32_t init_val) { - return _mm_crc32_u32(init_val, data); + return crc32c_sse42_u32(data, init_val); } /**