[x265] [PATCH] cpu: fix multilib compiling for some rarer build options

Steve Borho steve at borho.org
Tue Jun 23 00:44:33 CEST 2015


# HG changeset patch
# User Steve Borho <steve at borho.org>
# Date 1435013054 18000
#      Mon Jun 22 17:44:14 2015 -0500
# Node ID dfdf378a3968a15a1465a3aa3098e507fb4f10e5
# Parent  76015a49e45cf979da0380382a31f11758cae26e
cpu: fix multilib compiling for some rarer build options

diff -r 76015a49e45c -r dfdf378a3968 source/common/cpu.cpp
--- a/source/common/cpu.cpp	Mon Jun 22 14:34:09 2015 -0500
+++ b/source/common/cpu.cpp	Mon Jun 22 17:44:14 2015 -0500
@@ -125,7 +125,7 @@
     uint32_t max_extended_cap, max_basic_cap;
 
 #if !X86_64
-    if (!x265_cpu_cpuid_test())
+    if (!PFX(cpu_cpuid_test)())
         return 0;
 #endif
 
@@ -318,8 +318,8 @@
 #elif X265_ARCH_ARM
 
 extern "C" {
-void x265_cpu_neon_test(void);
-int x265_cpu_fast_neon_mrc_test(void);
+void PFX(cpu_neon_test)(void);
+int PFX(cpu_fast_neon_mrc_test)(void);
 }
 
 uint32_t cpu_detect(void)
@@ -340,7 +340,7 @@
     }
 
     canjump = 1;
-    x265_cpu_neon_test();
+    PFX(cpu_neon_test)();
     canjump = 0;
     signal(SIGILL, oldsig);
 #endif // if !HAVE_NEON
@@ -356,7 +356,7 @@
     // which may result in incorrect detection and the counters stuck enabled.
     // right now Apple does not seem to support performance counters for this test
 #ifndef __MACH__
-    flags |= x265_cpu_fast_neon_mrc_test() ? X265_CPU_FAST_NEON_MRC : 0;
+    flags |= PFX(cpu_fast_neon_mrc_test)() ? X265_CPU_FAST_NEON_MRC : 0;
 #endif
     // TODO: write dual issue test? currently it's A8 (dual issue) vs. A9 (fast mrc)
 #endif // if HAVE_ARMV6


More information about the x265-devel mailing list