fixed compiling issues

master
Ismael Gomez 7 years ago
parent 29ca3705a7
commit 9dffa10550

@ -30,6 +30,7 @@
#include "srslte/phy/utils/simd.h" #include "srslte/phy/utils/simd.h"
#include "srslte/config.h" #include "srslte/config.h"
/* /*
* Generic Macros * Generic Macros
*/ */
@ -65,6 +66,7 @@ SRSLTE_API float srslte_mat_2x2_cn(cf_t h00,
#ifdef LV_HAVE_SSE #ifdef LV_HAVE_SSE
#include <smmintrin.h>
/* SSE implementation for complex reciprocal */ /* SSE implementation for complex reciprocal */
SRSLTE_API __m128 srslte_mat_cf_recip_sse(__m128 a); SRSLTE_API __m128 srslte_mat_cf_recip_sse(__m128 a);
@ -88,6 +90,8 @@ SRSLTE_API void srslte_mat_2x2_mmse_sse(__m128 y0, __m128 y1,
#ifdef LV_HAVE_AVX #ifdef LV_HAVE_AVX
#include <immintrin.h>
/* AVX implementation for complex reciprocal */ /* AVX implementation for complex reciprocal */
SRSLTE_API __m256 srslte_mat_cf_recip_avx(__m256 a); SRSLTE_API __m256 srslte_mat_cf_recip_avx(__m256 a);

@ -25,7 +25,6 @@
*/ */
#include <complex.h> #include <complex.h>
#include <immintrin.h>
#include <math.h> #include <math.h>
#include "srslte/phy/utils/mat.h" #include "srslte/phy/utils/mat.h"
@ -116,6 +115,7 @@ inline float srslte_mat_2x2_cn(cf_t h00, cf_t h01, cf_t h10, cf_t h11) {
} }
#ifdef LV_HAVE_SSE #ifdef LV_HAVE_SSE
#include <smmintrin.h>
/* SSE implementation for complex reciprocal */ /* SSE implementation for complex reciprocal */
inline __m128 srslte_mat_cf_recip_sse(__m128 a) { inline __m128 srslte_mat_cf_recip_sse(__m128 a) {
@ -186,6 +186,7 @@ inline void srslte_mat_2x2_mmse_sse(__m128 y0, __m128 y1, __m128 h00, __m128 h01
#endif /* LV_HAVE_SSE */ #endif /* LV_HAVE_SSE */
#ifdef LV_HAVE_AVX #ifdef LV_HAVE_AVX
#include <immintrin.h>
/* AVX implementation for complex reciprocal */ /* AVX implementation for complex reciprocal */
inline __m256 srslte_mat_cf_recip_avx(__m256 a) { inline __m256 srslte_mat_cf_recip_avx(__m256 a) {

@ -35,6 +35,16 @@
#include "srslte/phy/utils/vector_simd.h" #include "srslte/phy/utils/vector_simd.h"
#include "srslte/phy/utils/bit.h" #include "srslte/phy/utils/bit.h"
#ifdef LV_HAVE_SSE
#include <smmintrin.h>
#endif
#ifdef LV_HAVE_AVX
#include <immintrin.h>
#endif
#ifdef HAVE_VOLK #ifdef HAVE_VOLK
#include "volk/volk.h" #include "volk/volk.h"
#endif #endif

Loading…
Cancel
Save