From d71f1b5bd00cf9d2b9bc06ac7b24e580879b7179 Mon Sep 17 00:00:00 2001 From: Ari Lemmetti Date: Sat, 24 Oct 2015 15:32:27 +0300 Subject: [PATCH] Disable incompatible optimizations for 32-bit version --- src/strategies/avx2/intra-avx2.c | 8 ++++---- src/strategies/avx2/quant-avx2.c | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/strategies/avx2/intra-avx2.c b/src/strategies/avx2/intra-avx2.c index ea4ae6d6..bfbfa519 100644 --- a/src/strategies/avx2/intra-avx2.c +++ b/src/strategies/avx2/intra-avx2.c @@ -27,7 +27,7 @@ #include "intra-avx2.h" #include "strategyselector.h" -#if COMPILE_INTEL_AVX2 +#if COMPILE_INTEL_AVX2 && defined X86_64 #include #include "strategies/strategies-common.h" @@ -464,15 +464,15 @@ static void kvz_angular_pred_avx2( } } -#endif //COMPILE_INTEL_AVX2 +#endif //COMPILE_INTEL_AVX2 && defined X86_64 int kvz_strategy_register_intra_avx2(void* opaque, uint8_t bitdepth) { bool success = true; -#if COMPILE_INTEL_AVX2 +#if COMPILE_INTEL_AVX2 && defined X86_64 if (bitdepth == 8) { success &= kvz_strategyselector_register(opaque, "angular_pred", "avx2", 40, &kvz_angular_pred_avx2); } -#endif //COMPILE_INTEL_AVX2 +#endif //COMPILE_INTEL_AVX2 && defined X86_64 return success; } diff --git a/src/strategies/avx2/quant-avx2.c b/src/strategies/avx2/quant-avx2.c index 1527e490..3528d286 100644 --- a/src/strategies/avx2/quant-avx2.c +++ b/src/strategies/avx2/quant-avx2.c @@ -32,7 +32,7 @@ #include "transform.h" #include "rdo.h" -#if COMPILE_INTEL_AVX2 +#if COMPILE_INTEL_AVX2 && defined X86_64 #include #include @@ -471,20 +471,20 @@ void kvz_dequant_avx2(const encoder_state_t * const state, coeff_t *q_coef, coef } } -#endif //COMPILE_INTEL_AVX2 +#endif //COMPILE_INTEL_AVX2 && defined X86_64 int kvz_strategy_register_quant_avx2(void* opaque, uint8_t bitdepth) { bool success = true; -#if COMPILE_INTEL_AVX2 +#if COMPILE_INTEL_AVX2 && defined X86_64 success &= kvz_strategyselector_register(opaque, "quant", "avx2", 40, &kvz_quant_avx2); if (bitdepth == 8) { success &= kvz_strategyselector_register(opaque, "quantize_residual", "avx2", 40, &kvz_quantize_residual_avx2); success &= kvz_strategyselector_register(opaque, "dequant", "avx2", 40, &kvz_dequant_avx2); } -#endif //COMPILE_INTEL_AVX2 +#endif //COMPILE_INTEL_AVX2 && defined X86_64 return success; }