summaryrefslogtreecommitdiff
path: root/user/x265/build-on-any-non-x86.patch
diff options
context:
space:
mode:
Diffstat (limited to 'user/x265/build-on-any-non-x86.patch')
-rw-r--r--user/x265/build-on-any-non-x86.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/user/x265/build-on-any-non-x86.patch b/user/x265/build-on-any-non-x86.patch
new file mode 100644
index 000000000..f92395629
--- /dev/null
+++ b/user/x265/build-on-any-non-x86.patch
@@ -0,0 +1,24 @@
+--- x265_2.9/source/common/cpu.cpp.orig 2018-10-05 12:14:40.000000000 +0000
++++ x265_2.9/source/common/cpu.cpp 2018-10-19 02:24:48.780000000 +0000
+@@ -59,6 +59,10 @@
+
+ namespace X265_NS {
+ static bool enable512 = false;
++bool detect512()
++{
++ return(enable512);
++}
+ const cpu_name_t cpu_names[] =
+ {
+ #if X265_ARCH_X86
+@@ -123,10 +127,6 @@
+ #pragma warning(disable: 4309) // truncation of constant value
+ #endif
+
+-bool detect512()
+-{
+- return(enable512);
+-}
+ uint32_t cpu_detect(bool benableavx512 )
+ {
+