Define headers

This commit is contained in:
Jamaika1 2024-11-15 12:09:26 +01:00 committed by GitHub
parent 9c158adf08
commit 424253b526
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -31,9 +31,10 @@
****************************************************************************/ ****************************************************************************/
#include "strategies/strategies-dct.h" #include "strategies/strategies-dct.h"
#if defined(__AVX512F__)
#include "avx2/dct-avx2.h" #include "strategies/avx2/dct-avx2.h"
#include "generic/dct-generic.h" #endif
#include "strategies/generic/dct-generic.h"
#include "strategyselector.h" #include "strategyselector.h"
@ -76,11 +77,11 @@ int uvg_strategy_register_dct(void* opaque, uint8_t bitdepth) {
bool success = true; bool success = true;
success &= uvg_strategy_register_dct_generic(opaque, bitdepth); success &= uvg_strategy_register_dct_generic(opaque, bitdepth);
#if defined(__AVX512F__)
if (uvg_g_hardware_flags.intel_flags.avx2) { if (uvg_g_hardware_flags.intel_flags.avx2) {
success &= uvg_strategy_register_dct_avx2(opaque, bitdepth); success &= uvg_strategy_register_dct_avx2(opaque, bitdepth);
} }
#endif
return success; return success;
} }