shithub: dumb

Download patch

ref: 1f2c97ef13d66e4787ea1da86a75c6ab7d3b66a7
parent: 7f3dd7ed3c97b1f0030ac24753ab248a8d8374b4
author: Chris Moeller <kode54@gmail.com>
date: Sun Jan 11 21:01:36 EST 2015

Fixed non-SIMD blep and blam handlers

--- a/dumb/src/helpers/resampler.c
+++ b/dumb/src/helpers/resampler.c
@@ -8,7 +8,7 @@
 #endif
 #ifdef __APPLE__
 #include <TargetConditionals.h>
-#if TARGET_CPU_ARM
+#if TARGET_CPU_ARM || TARGET_CPU_ARM64
 #include <arm_neon.h>
 #define RESAMPLER_NEON
 #endif
@@ -470,7 +470,7 @@
                 }
                 last_amp += sample;
                 sample /= kernel_sum;
-                for (sample = 0, i = 0; i < SINC_WIDTH * 2; ++i)
+                for (i = 0; i < SINC_WIDTH * 2; ++i)
                     out[i] += sample * kernel[i];
             }
             
@@ -743,7 +743,7 @@
                 }
                 last_amp += sample;
                 sample /= kernel_sum;
-                for (sample = 0, i = 0; i < SINC_WIDTH * 2; ++i)
+                for (i = 0; i < SINC_WIDTH * 2; ++i)
                     out[i] += sample * kernel[i];
             }