From 14864770be4068b34ffc1124f47f5e9fe2a929d2 Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Tue, 22 May 2018 14:07:47 +0200 Subject: vppinfra: add clib_count_equal_uXX and clib_memset_uXX functions Change-Id: I56782652d8ef10304900cc293cfc0502689d800e Signed-off-by: Damjan Marion --- src/vppinfra/vector_avx2.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/vppinfra/vector_avx2.h') diff --git a/src/vppinfra/vector_avx2.h b/src/vppinfra/vector_avx2.h index 1fb41dfd7df..e2d5701c0e8 100644 --- a/src/vppinfra/vector_avx2.h +++ b/src/vppinfra/vector_avx2.h @@ -47,8 +47,8 @@ t##s##x##c##_is_all_zero (t##s##x##c x) \ { return _mm256_testz_si256 ((__m256i) x, (__m256i) x); } \ \ static_always_inline int \ -t##s##x##c##_is_equal (t##s##x##c x, t##s##x##c y) \ -{ return _mm256_testc_si256 ((__m256i) x, (__m256i) y); } \ +t##s##x##c##_is_equal (t##s##x##c a, t##s##x##c b) \ +{ return t##s##x##c##_is_all_zero (a ^ b); } \ \ static_always_inline int \ t##s##x##c##_is_all_equal (t##s##x##c v, t##s x) \ -- cgit 1.2.3-korg