Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/x265/0003-detect512-is-needed-on-all-architectures.patch
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2019-02-28 16:26:50 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2019-02-28 16:26:50 +0100
commit3602bda3bf394e1e629c8b30e9defc0bb6b262df (patch)
treebeb6d89af59cb4e9dc1b27bf63011bb319405dfc /extra/x265/0003-detect512-is-needed-on-all-architectures.patch
parentd5fa0c45743332c654ba88f53a0e792ee83b6c22 (diff)
extra/x265: redone the CPU patch
Diffstat (limited to 'extra/x265/0003-detect512-is-needed-on-all-architectures.patch')
-rw-r--r--extra/x265/0003-detect512-is-needed-on-all-architectures.patch12
1 files changed, 6 insertions, 6 deletions
diff --git a/extra/x265/0003-detect512-is-needed-on-all-architectures.patch b/extra/x265/0003-detect512-is-needed-on-all-architectures.patch
index 16aab240..a5c65171 100644
--- a/extra/x265/0003-detect512-is-needed-on-all-architectures.patch
+++ b/extra/x265/0003-detect512-is-needed-on-all-architectures.patch
@@ -6,11 +6,10 @@ Subject: detect512 is needed on 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 0681ff5..fa687da 100644
---- a/source/common/cpu.cpp
-+++ b/source/common/cpu.cpp
-@@ -110,6 +110,11 @@ const cpu_name_t cpu_names[] =
+diff -rauN a/source/common/cpu.cpp b/source/common/cpu.cpp
+--- a/source/common/cpu.cpp 2019-02-28 16:19:18.243333277 +0100
++++ b/source/common/cpu.cpp 2019-02-28 16:20:11.489999939 +0100
+@@ -110,6 +110,11 @@
{ "", 0 },
};
@@ -22,7 +21,7 @@ index 0681ff5..fa687da 100644
#if X265_ARCH_X86
extern "C" {
-@@ -123,10 +128,6 @@ uint64_t PFX(cpu_xgetbv)(int xcr);
+@@ -123,11 +128,6 @@
#pragma warning(disable: 4309) // truncation of constant value
#endif
@@ -30,6 +29,7 @@ index 0681ff5..fa687da 100644
-{
- return(enable512);
-}
+-
uint32_t cpu_detect(bool benableavx512 )
{