commit 599158e2eed46bbab4f782fa7c39ce5d44c13cff
parent 11ad3d569ac30e5239555b8915ea269a8ba99385
Author: Pandora <Pandora@techfo.xyz>
Date: Fri, 8 Dec 2017 22:26:20 -0500
fix compiling on ARM
thanks toshi
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/blur_simd.c b/blur_simd.c
@@ -7,12 +7,12 @@
*
*/
-#include "blur.h"
-#include <xmmintrin.h>
// number of xmm registers needed to store input pixels for given kernel size
-#define REGISTERS_CNT (KERNEL_SIZE + 4/2) / 4
#ifdef __SSE2__
+#include "blur.h"
+#define REGISTERS_CNT (KERNEL_SIZE + 4/2) / 4
+#include <xmmintrin.h>
void blur_impl_horizontal_pass_sse2(uint32_t *src, uint32_t *dst, int width, int height) {
uint32_t* o_src = src;
for (int row = 0; row < height; row++) {