From d5a0063559434df1e884b0989c9fd7c92aca463d Mon Sep 17 00:00:00 2001 From: falkTX Date: Thu, 31 Aug 2023 15:11:46 +0200 Subject: [PATCH] Really fix build Signed-off-by: falkTX --- source/modules/zita-resampler/resampler.cc | 4 ++-- source/modules/zita-resampler/vresampler.cc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/source/modules/zita-resampler/resampler.cc b/source/modules/zita-resampler/resampler.cc index c531e22837..1bbeff5a3e 100644 --- a/source/modules/zita-resampler/resampler.cc +++ b/source/modules/zita-resampler/resampler.cc @@ -241,7 +241,7 @@ bool Resampler::process (void) c1 = _table->_ctab + hl * ph; c2 = _table->_ctab + hl * (np - ph); -#if defined(__SSE2_MATH__) +#if defined(__SSE2_MATH__) && !defined(CARLA_OS_WIN) __m128 C1, C2, Q1, Q2, S; for (j = 0; j < _nchan; j++) { @@ -262,7 +262,7 @@ bool Resampler::process (void) *out_data++ = S [0] + S [1] + S [2] + S [3]; } -#elif defined(__ARM_NEON) || defined(__ARM_NEON__) +#elif (defined(__ARM_NEON) || defined(__ARM_NEON__)) && !defined(CARLA_OS_WIN) // ARM64 version by Nicolas Belin float32x4_t *C1 = (float32x4_t *)c1; float32x4_t *C2 = (float32x4_t *)c2; diff --git a/source/modules/zita-resampler/vresampler.cc b/source/modules/zita-resampler/vresampler.cc index 7ea4614b41..313bfdcdc9 100644 --- a/source/modules/zita-resampler/vresampler.cc +++ b/source/modules/zita-resampler/vresampler.cc @@ -251,7 +251,7 @@ bool VResampler::process (void) q1 = _table->_ctab + hl * n; q2 = _table->_ctab + hl * (np - n); -#if defined(__SSE2_MATH__) +#if defined(__SSE2_MATH__) && !defined(CARLA_OS_WIN) __m128 C1, C2, Q1, Q2, S; C1 = _mm_load1_ps (&a); C2 = _mm_load1_ps (&b); @@ -285,7 +285,7 @@ bool VResampler::process (void) *out_data++ = S [0] + S [1] + S [2] + S [3]; } -#elif defined(__ARM_NEON) || defined(__ARM_NEON__) +#elif (defined(__ARM_NEON) || defined(__ARM_NEON__)) && !defined(CARLA_OS_WIN) // ARM64 version by Nicolas Belin float32x4_t *C1 = (float32x4_t *)_c1; float32x4_t *C2 = (float32x4_t *)_c2;