From 5a70b49f690713cdae2604933a12428e402a7958 Mon Sep 17 00:00:00 2001 From: Ari Lemmetti Date: Sat, 6 Mar 2021 18:09:57 +0200 Subject: [PATCH] Require 64-bit build for AVX2 interpolation filter functions --- src/strategies/avx2/ipol-avx2.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/strategies/avx2/ipol-avx2.c b/src/strategies/avx2/ipol-avx2.c index 987461c6..8db217aa 100644 --- a/src/strategies/avx2/ipol-avx2.c +++ b/src/strategies/avx2/ipol-avx2.c @@ -24,7 +24,7 @@ #include "strategies/avx2/ipol-avx2.h" -#if COMPILE_INTEL_AVX2 +#if COMPILE_INTEL_AVX2 && defined X86_64 #include #include #include @@ -1236,12 +1236,12 @@ static void kvz_sample_14bit_octpel_chroma_avx2(const encoder_control_t *const e kvz_ipol_4tap_ver_hi_hi_avx2(ver_fir, width, height, hor_intermediate, hor_stride, dst, dst_stride); } -#endif //COMPILE_INTEL_AVX2 +#endif //COMPILE_INTEL_AVX2 && defined X86_64 int kvz_strategy_register_ipol_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, "filter_hpel_blocks_hor_ver_luma", "avx2", 40, &kvz_filter_hpel_blocks_hor_ver_luma_avx2); success &= kvz_strategyselector_register(opaque, "filter_hpel_blocks_diag_luma", "avx2", 40, &kvz_filter_hpel_blocks_diag_luma_avx2); @@ -1252,6 +1252,6 @@ int kvz_strategy_register_ipol_avx2(void* opaque, uint8_t bitdepth) success &= kvz_strategyselector_register(opaque, "sample_14bit_quarterpel_luma", "avx2", 40, &kvz_sample_14bit_quarterpel_luma_avx2); success &= kvz_strategyselector_register(opaque, "sample_14bit_octpel_chroma", "avx2", 40, &kvz_sample_14bit_octpel_chroma_avx2); } -#endif //COMPILE_INTEL_AVX2 +#endif //COMPILE_INTEL_AVX2 && defined X86_64 return success; }