From 38c87b0f0800cbe2917e87b98d2ed25152e5130c Mon Sep 17 00:00:00 2001 From: Ken Cooke Date: Wed, 21 Jun 2017 13:19:46 -0700 Subject: [PATCH] Fallback code to allow compiling with VS2013 --- libraries/audio/src/avx512/AudioHRTF_avx512.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/libraries/audio/src/avx512/AudioHRTF_avx512.cpp b/libraries/audio/src/avx512/AudioHRTF_avx512.cpp index a8bb62be35..7b29d05e35 100644 --- a/libraries/audio/src/avx512/AudioHRTF_avx512.cpp +++ b/libraries/audio/src/avx512/AudioHRTF_avx512.cpp @@ -9,7 +9,7 @@ // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // -#ifdef __AVX512F__ +#if defined(zz__AVX512F__) #include #include @@ -87,4 +87,15 @@ void FIR_1x4_AVX512(float* src, float* dst0, float* dst1, float* dst2, float* ds _mm256_zeroupper(); } +// FIXME: this fallback can be removed, once we require VS2017 +#elif defined(_M_IX86) || defined(_M_X64) || defined(__i386__) || defined(__x86_64__) + +#include "../AudioHRTF.h" + +void FIR_1x4_AVX2(float* src, float* dst0, float* dst1, float* dst2, float* dst3, float coef[4][HRTF_TAPS], int numFrames); + +void FIR_1x4_AVX512(float* src, float* dst0, float* dst1, float* dst2, float* dst3, float coef[4][HRTF_TAPS], int numFrames) { + FIR_1x4_AVX2(src, dst0, dst1, dst2, dst3, coef, numFrames); +} + #endif