summaryrefslogtreecommitdiff
path: root/extra/x265/0003-detect512-is-needed-on-all-architectures.patch
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-10-15 16:20:58 +0200
committerErich Eckner <git@eckner.net>2018-10-15 16:20:58 +0200
commite83615201d332af851af51937b4f90ea279855cc (patch)
treeeed1493f922f88afbd593d42955dce0596c3a91c /extra/x265/0003-detect512-is-needed-on-all-architectures.patch
parent8d33134f1b16960444a452c7d10b7cd233e72705 (diff)
downloadpackages-e83615201d332af851af51937b4f90ea279855cc.tar.xz
extra/x265: detect512-is-needed-on-all-architectures
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.patch35
1 files changed, 35 insertions, 0 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
new file mode 100644
index 00000000..16aab240
--- /dev/null
+++ b/extra/x265/0003-detect512-is-needed-on-all-architectures.patch
@@ -0,0 +1,35 @@
+From: Adam Sampson <unknown@bitbucket>
+Date: Sun, 14 Oct 2018 14:04:18 +0200
+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[] =
+ { "", 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 )
+ {
+