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
blob: a5c651717c54176fda31ecec37776949d0e7dfca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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 -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 },
 };
 
+bool detect512()
+{
+    return(enable512);
+}
+
 #if X265_ARCH_X86
 
 extern "C" {
@@ -123,11 +128,6 @@
 #pragma warning(disable: 4309) // truncation of constant value
 #endif
 
-bool detect512()
-{
-    return(enable512);
-}
-
 uint32_t cpu_detect(bool benableavx512 )
 {