From 84f315deced14f7541fb68a637391bd6eaab9f6c Mon Sep 17 00:00:00 2001 From: rego21 Date: Sun, 20 Mar 2022 23:27:21 +0100 Subject: [PATCH 3/3] add patch to enable detect512 Enables detect512 for all architectures --- source/common/cpu.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/source/common/cpu.cpp b/source/common/cpu.cpp index 0681ff55b..fa687da7c 100644 --- a/source/common/cpu.cpp +++ b/source/common/cpu.cpp @@ -110,6 +110,11 @@ const cpu_name_t cpu_names[] = { "", 0 }, }; +bool detect512() +{ + return(enable512); +} + #if X265_ARCH_X86 extern "C" { @@ -123,10 +128,6 @@ uint64_t PFX(cpu_xgetbv)(int xcr); #pragma warning(disable: 4309) // truncation of constant value #endif -bool detect512() -{ - return(enable512); -} uint32_t cpu_detect(bool benableavx512 ) { -- 2.45.0.windows.1