From 0d91587622ce54efdfff5c5fcb2d3235c3fe4ef0 Mon Sep 17 00:00:00 2001 From: Jamaika1 Date: Fri, 15 Nov 2024 12:02:02 +0100 Subject: [PATCH] Define headers --- src/strategies/strategies-quant.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/strategies/strategies-quant.c b/src/strategies/strategies-quant.c index 62c75d6f..727cf0c2 100644 --- a/src/strategies/strategies-quant.c +++ b/src/strategies/strategies-quant.c @@ -31,8 +31,9 @@ ****************************************************************************/ #include "strategies/strategies-quant.h" - +#if defined(__AVX512F__) #include "strategies/avx2/quant-avx2.h" +#endif #include "strategies/generic/quant-generic.h" #include "strategyselector.h" @@ -51,9 +52,10 @@ int uvg_strategy_register_quant(void *opaque, uint8_t bitdepth) bool success = true; success &= uvg_strategy_register_quant_generic(opaque, bitdepth); - +#if defined(__AVX512F__) if (uvg_g_hardware_flags.intel_flags.avx2) { success &= uvg_strategy_register_quant_avx2(opaque, bitdepth); } +#endif return success; }