Browse Source

Fix build

Signed-off-by: falkTX <falktx@falktx.com>
pull/1807/head
falkTX 2 years ago
parent
commit
a13a5bd84c
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
3 changed files with 21 additions and 17 deletions
  1. +1
    -1
      source/modules/zita-resampler/resampler-table.cc
  2. +10
    -8
      source/modules/zita-resampler/resampler.cc
  3. +10
    -8
      source/modules/zita-resampler/vresampler.cc

+ 1
- 1
source/modules/zita-resampler/resampler-table.cc View File

@@ -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




+ 10
- 8
source/modules/zita-resampler/resampler.cc View File

@@ -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)
{ {


+ 10
- 8
source/modules/zita-resampler/vresampler.cc View File

@@ -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),


Loading…
Cancel
Save