0003-deinterlace-merge-use-a-macro-to-fix-compilation-for.patch 2.02 KB
Newer Older
1
From 585cfc4d3e5874f4df17dc74860c2a546c798026 Mon Sep 17 00:00:00 2001
Felix Paul Kühne's avatar
Felix Paul Kühne committed
2 3
From: =?UTF-8?q?Felix=20Paul=20K=C3=BChne?= <fkuehne@videolan.org>
Date: Fri, 10 Aug 2012 16:02:07 +0200
4
Subject: [PATCH 03/17] deinterlace/merge: use a macro to fix compilation for
Felix Paul Kühne's avatar
Felix Paul Kühne committed
5 6 7
 iOS

---
8
 modules/video_filter/deinterlace/merge_arm.S | 26 ++++++++++----------------
Felix Paul Kühne's avatar
Felix Paul Kühne committed
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 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
 1 file changed, 10 insertions(+), 16 deletions(-)

diff --git a/modules/video_filter/deinterlace/merge_arm.S b/modules/video_filter/deinterlace/merge_arm.S
index dd77902..03e5042 100644
--- a/modules/video_filter/deinterlace/merge_arm.S
+++ b/modules/video_filter/deinterlace/merge_arm.S
@@ -18,6 +18,8 @@
  @ Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  @****************************************************************************/
 
+#include "../../arm_neon/asm.S"
+
 	.syntax	unified
 	.arm
 	.arch	armv6
@@ -29,11 +31,8 @@
 #define	SRC2	r2
 #define	SIZE	r3
 
-	.align 2
-	.global merge8_arm_neon
-	.type	merge8_arm_neon, %function
 	@ NOTE: Offset and pitch must be multiple of 16-bytes in VLC.
-merge8_arm_neon:
+function merge8_arm_neon, export=1
 	cmp		SIZE,	#64
 	blo		2f
 1:
@@ -70,11 +69,9 @@ merge8_arm_neon:
 	vhadd.u8	q0,	q0,	q8
 	vst1.u8		{q0},		[DEST,:128]!
 	bx		lr
+endfunc
 
-	.align 2
-	.global merge16_arm_neon
-	.type	merge16_arm_neon, %function
-merge16_arm_neon:
+function merge16_arm_neon, export=1
 	cmp		SIZE,	#64
 	blo		2f
 1:
@@ -111,11 +108,9 @@ merge16_arm_neon:
 	vhadd.u16	q0,	q0,	q8
 	vst1.u16	{q0},		[DEST,:128]!
 	bx		lr
+endfunc
 
-	.align 2
-	.global merge8_armv6
-	.type	merge8_armv6, %function
-merge8_armv6:
+function merge8_armv6, export=1
 	push		{r4-r9,lr}
 1:
 	pld		[SRC1, #64]
@@ -133,11 +128,9 @@ merge8_armv6:
 	stm		DEST!,	{r6-r7}
 	popeq		{r4-r9,pc}
 	b		1b
+endfunc
 
-	.align 2
-	.global merge16_armv6
-	.type	merge16_armv6, %function
-merge16_armv6:
+function merge16_armv6, export=1
 	push		{r4-r9,lr}
 1:
 	pld		[SRC1, #64]
@@ -155,3 +148,4 @@ merge16_armv6:
 	stm		DEST!,	{r6-r7}
 	popeq		{r4-r9,pc}
 	b		1b
+endfunc
-- 
85
1.8.3.4 (Apple Git-47)
Felix Paul Kühne's avatar
Felix Paul Kühne committed
86