From 20287c9b7d67b25bfb58de0a1654b8d95522a9ad Mon Sep 17 00:00:00 2001 From: Johannes Demel Date: Tue, 17 Mar 2020 21:20:51 +0100 Subject: [PATCH] [PATCH 2/7] exp: Rename SSE4.1 to SSE2 kernel The SSE kernel only requires SSE2 instructions. Thus, we can just use this instruction level. Gbp-Pq: Name 0002-exp-Rename-SSE4.1-to-SSE2-kernel.patch --- kernels/volk/volk_32f_exp_32f.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/kernels/volk/volk_32f_exp_32f.h b/kernels/volk/volk_32f_exp_32f.h index 19c3d9d..26fdf02 100644 --- a/kernels/volk/volk_32f_exp_32f.h +++ b/kernels/volk/volk_32f_exp_32f.h @@ -99,11 +99,11 @@ #ifndef INCLUDED_volk_32f_exp_32f_a_H #define INCLUDED_volk_32f_exp_32f_a_H -#ifdef LV_HAVE_SSE4_1 -#include +#ifdef LV_HAVE_SSE2 +#include static inline void -volk_32f_exp_32f_a_sse4_1(float* bVector, const float* aVector, unsigned int num_points) +volk_32f_exp_32f_a_sse2(float* bVector, const float* aVector, unsigned int num_points) { float* bPtr = bVector; const float* aPtr = aVector; @@ -175,7 +175,7 @@ volk_32f_exp_32f_a_sse4_1(float* bVector, const float* aVector, unsigned int num } } -#endif /* LV_HAVE_SSE4_1 for aligned */ +#endif /* LV_HAVE_SSE2 for aligned */ #ifdef LV_HAVE_GENERIC @@ -199,11 +199,11 @@ volk_32f_exp_32f_a_generic(float* bVector, const float* aVector, unsigned int nu #ifndef INCLUDED_volk_32f_exp_32f_u_H #define INCLUDED_volk_32f_exp_32f_u_H -#ifdef LV_HAVE_SSE4_1 -#include +#ifdef LV_HAVE_SSE2 +#include static inline void -volk_32f_exp_32f_u_sse4_1(float* bVector, const float* aVector, unsigned int num_points) +volk_32f_exp_32f_u_sse2(float* bVector, const float* aVector, unsigned int num_points) { float* bPtr = bVector; const float* aPtr = aVector; @@ -276,7 +276,7 @@ volk_32f_exp_32f_u_sse4_1(float* bVector, const float* aVector, unsigned int num } } -#endif /* LV_HAVE_SSE4_1 for unaligned */ +#endif /* LV_HAVE_SSE2 for unaligned */ #ifdef LV_HAVE_GENERIC -- 2.30.2