From 3d0a6e4032086448a7259a32b1c9c0c1ca9c63e0 Mon Sep 17 00:00:00 2001 From: Cedric Roux <roux@eurecom.fr> Date: Tue, 22 Dec 2015 13:28:05 +0100 Subject: [PATCH] fix a bug in dot_product. The return was done before _mm_empty() --- openair1/PHY/TOOLS/cdot_prod.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openair1/PHY/TOOLS/cdot_prod.c b/openair1/PHY/TOOLS/cdot_prod.c index 2e52e63f7e..e6ff476303 100644 --- a/openair1/PHY/TOOLS/cdot_prod.c +++ b/openair1/PHY/TOOLS/cdot_prod.c @@ -115,11 +115,11 @@ int32_t dot_product(int16_t *x, // convert back to integer result = _mm_cvtsi64_si32(mmtmp7); - return(result); - _mm_empty(); _m_empty(); + return(result); + #elif defined(__arm__) int16x4_t *x_128=(int16x4_t*)x; int16x4_t *y_128=(int16x4_t*)y; -- GitLab