blob: 444c899a0b63acd5b64bc3324dc6039092240aaf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
These functions are only built when enabling assembly on ARM; use proper check
to avoid undefined symbols.
Index: source/common/primitives.cpp
===================================================================
--- source.orig/common/primitives.cpp
+++ source/common/primitives.cpp
@@ -270,7 +270,7 @@ void PFX(cpu_emms)(void) {}
void PFX(cpu_cpuid)(uint32_t, uint32_t *eax, uint32_t *, uint32_t *, uint32_t *) { *eax = 0; }
void PFX(cpu_xgetbv)(uint32_t, uint32_t *, uint32_t *) {}
-#if X265_ARCH_ARM == 0
+#if X265_ARCH_ARM == 0 || !defined(ENABLE_ASSEMBLY)
void PFX(cpu_neon_test)(void) {}
int PFX(cpu_fast_neon_mrc_test)(void) { return 0; }
#endif // X265_ARCH_ARM
|