From 1315c7e2b0c0b7af5bdb2aeca8a64471eee150d9 Mon Sep 17 00:00:00 2001 From: Pauli Oikkonen Date: Mon, 15 Apr 2019 19:10:48 +0300 Subject: [PATCH] Do not compile any vector code for non-SSE4/AVX2 builds --- src/strategies/avx2/picture-avx2.c | 3 ++- src/strategies/sse41/picture-sse41.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/strategies/avx2/picture-avx2.c b/src/strategies/avx2/picture-avx2.c index 36f51428..a534e6c2 100644 --- a/src/strategies/avx2/picture-avx2.c +++ b/src/strategies/avx2/picture-avx2.c @@ -21,10 +21,11 @@ /* * \file */ + +#if COMPILE_INTEL_AVX2 #include "strategies/avx2/picture-avx2.h" #include "strategies/avx2/reg_sad_pow2_widths-avx2.h" -#if COMPILE_INTEL_AVX2 #include #include #include diff --git a/src/strategies/sse41/picture-sse41.c b/src/strategies/sse41/picture-sse41.c index b31f3006..3201b6f2 100644 --- a/src/strategies/sse41/picture-sse41.c +++ b/src/strategies/sse41/picture-sse41.c @@ -18,10 +18,10 @@ * with Kvazaar. If not, see . ****************************************************************************/ +#if COMPILE_INTEL_SSE41 #include "strategies/sse41/picture-sse41.h" #include "strategies/sse41/reg_sad_pow2_widths-sse41.h" -#if COMPILE_INTEL_SSE41 #include #include