summaryrefslogtreecommitdiff
path: root/media-libs/x265/files/neon.patch
diff options
context:
space:
mode:
authorAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2021-07-29 15:09:41 -0400
committerAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2021-07-29 15:09:53 -0400
commit2d93f2a120a24a93d0e6fe773a4c50b22a7be8bd (patch)
tree72e9ab1978c5fb0b5b37e51639cc565bb8846ba0 /media-libs/x265/files/neon.patch
parent7aab4631173a71d3978bfecb140786751e61f12c (diff)
downloadgentoo-overlay-2d93f2a120a24a93d0e6fe773a4c50b22a7be8bd.tar.xz
gentoo-overlay-2d93f2a120a24a93d0e6fe773a4c50b22a7be8bd.zip
media-libs/x265: add
Diffstat (limited to 'media-libs/x265/files/neon.patch')
-rw-r--r--media-libs/x265/files/neon.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/media-libs/x265/files/neon.patch b/media-libs/x265/files/neon.patch
new file mode 100644
index 0000000..444c899
--- /dev/null
+++ b/media-libs/x265/files/neon.patch
@@ -0,0 +1,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