From 424253b526bbb182b9d9f97295c47393fa6cdc4f Mon Sep 17 00:00:00 2001 From: Jamaika1 Date: Fri, 15 Nov 2024 12:09:26 +0100 Subject: [PATCH] Define headers --- src/strategies/strategies-dct.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/strategies/strategies-dct.c b/src/strategies/strategies-dct.c index 64b72eb9..5335c052 100644 --- a/src/strategies/strategies-dct.c +++ b/src/strategies/strategies-dct.c @@ -31,9 +31,10 @@ ****************************************************************************/ #include "strategies/strategies-dct.h" - -#include "avx2/dct-avx2.h" -#include "generic/dct-generic.h" +#if defined(__AVX512F__) +#include "strategies/avx2/dct-avx2.h" +#endif +#include "strategies/generic/dct-generic.h" #include "strategyselector.h" @@ -76,11 +77,11 @@ int uvg_strategy_register_dct(void* opaque, uint8_t bitdepth) { bool success = true; success &= uvg_strategy_register_dct_generic(opaque, bitdepth); - +#if defined(__AVX512F__) if (uvg_g_hardware_flags.intel_flags.avx2) { success &= uvg_strategy_register_dct_avx2(opaque, bitdepth); } - +#endif return success; }