| @@ -26,7 +26,7 @@ | |||||
| #undef ENABLE_VEC4 | #undef ENABLE_VEC4 | ||||
| #if defined(__SSE2_MATH__) || defined(__ARM_NEON) || defined(__ARM_NEON__) | |||||
| #if (defined(__SSE2_MATH__) || defined(__ARM_NEON) || defined(__ARM_NEON__)) && !defined(CARLA_OS_WIN) | |||||
| # define ENABLE_VEC4 | # define ENABLE_VEC4 | ||||
| #endif | #endif | ||||
| @@ -23,17 +23,19 @@ | |||||
| #include <string.h> | #include <string.h> | ||||
| #include <math.h> | #include <math.h> | ||||
| #include "resampler.h" | |||||
| #undef ENABLE_VEC4 | #undef ENABLE_VEC4 | ||||
| #if defined(__SSE2_MATH__) | |||||
| # define ENABLE_VEC4 | |||||
| # include <xmmintrin.h> | |||||
| #elif defined(__ARM_NEON) || defined(__ARM_NEON__) | |||||
| # define ENABLE_VEC4 | |||||
| # include <arm_neon.h> | |||||
| #ifndef CARLA_OS_WIN | |||||
| # if defined(__SSE2_MATH__) | |||||
| # define ENABLE_VEC4 | |||||
| # include <xmmintrin.h> | |||||
| # elif defined(__ARM_NEON) || defined(__ARM_NEON__) | |||||
| # define ENABLE_VEC4 | |||||
| # include <arm_neon.h> | |||||
| # endif | |||||
| #endif | #endif | ||||
| #include "resampler.h" | |||||
| static unsigned int gcd (unsigned int a, unsigned int b) | static unsigned int gcd (unsigned int a, unsigned int b) | ||||
| { | { | ||||
| @@ -23,17 +23,19 @@ | |||||
| #include <string.h> | #include <string.h> | ||||
| #include <math.h> | #include <math.h> | ||||
| #include "vresampler.h" | |||||
| #undef ENABLE_VEC4 | #undef ENABLE_VEC4 | ||||
| #if defined(__SSE2_MATH__) | |||||
| # define ENABLE_VEC4 | |||||
| # include <xmmintrin.h> | |||||
| #elif defined(__ARM_NEON) || defined(__ARM_NEON__) | |||||
| # define ENABLE_VEC4 | |||||
| # include <arm_neon.h> | |||||
| #ifndef CARLA_OS_WIN | |||||
| # if defined(__SSE2_MATH__) | |||||
| # define ENABLE_VEC4 | |||||
| # include <xmmintrin.h> | |||||
| # elif defined(__ARM_NEON) || defined(__ARM_NEON__) | |||||
| # define ENABLE_VEC4 | |||||
| # include <arm_neon.h> | |||||
| # endif | |||||
| #endif | #endif | ||||
| #include "vresampler.h" | |||||
| VResampler::VResampler (void) noexcept : | VResampler::VResampler (void) noexcept : | ||||
| _table (0), | _table (0), | ||||