hash: fix build without SSE4.1
authorPablo de Lara <pablo.de.lara.guarch@intel.com>
Thu, 16 Jul 2015 09:00:54 +0000 (10:00 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 16 Jul 2015 14:52:15 +0000 (16:52 +0200)
commitaf083e9fcc61fe5417a5c7f5561973eeebcc7222
tree66570d6b3e02c29ef7d777778cb0ab87e418693c
parent6f71544ce28f09e9aae452954b3b72c448aad2ec
hash: fix build without SSE4.1

_mm_test_all_zeros is not available for CPUs with no SSE4.1,
therefore, DPDK would not build.
This patch adds an alternative for this, using _mm_cmpeq_epi32 and
_mm_movemask_epi8.

Fixes: 48a399119619 ("hash: replace with cuckoo hash implementation")

Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
lib/librte_hash/rte_cuckoo_hash.c