From 64c0e39596e63ec2464564864369896ef8823e1a Mon Sep 17 00:00:00 2001 From: Themaister Date: Thu, 7 Feb 2013 07:32:10 +0100 Subject: [PATCH] Add NEON check for sinc taps. --- audio/sinc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/audio/sinc.c b/audio/sinc.c index c78b25ff7a..38ac38e067 100644 --- a/audio/sinc.c +++ b/audio/sinc.c @@ -223,6 +223,11 @@ static void process_sinc(rarch_resampler_t *resamp, float *out_buffer) _mm_store_ss(out_buffer + 1, _mm_movehl_ps(sum, sum)); } #elif defined(HAVE_NEON) + +#if TAPS != 16 +#error "NEON sinc is for now only implemented with 16 taps. Cannot continue." +#endif + // Need to make this function pointer as Android doesn't have built-in targets // for NEON and plain ARMv7a. static void (*process_sinc_func)(rarch_resampler_t *resamp, float *out_buffer);