1 @*****************************************************************************
2 @ merge_arm.S : ARM NEON mean
3 @*****************************************************************************
4 @ Copyright (C) 2009-2012 RĂ©mi Denis-Courmont
6 @ This program is free software; you can redistribute it and/or modify
7 @ it under the terms of the GNU Lesser General Public License as published by
8 @ the Free Software Foundation; either version 2.1 of the License, or
9 @ (at your option) any later version.
11 @ This program is distributed in the hope that it will be useful,
12 @ but WITHOUT ANY WARRANTY; without even the implied warranty of
13 @ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 @ GNU Lesser General Public License for more details.
16 @ You should have received a copy of the GNU Lesser General Public License
17 @ along with this program; if not, write to the Free Software Foundation,
18 @ Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
19 @****************************************************************************/
33 .global merge8_arm_neon
34 .type merge8_arm_neon, %function
35 @ NOTE: Offset and pitch must be multiple of 16-bytes in VLC.
41 vld1.u8 {q0-q1}, [SRC1,:128]!
43 vld1.u8 {q8-q9}, [SRC2,:128]!
46 vld1.u8 {q2-q3}, [SRC1,:128]!
48 vld1.u8 {q10-q11}, [SRC2,:128]!
52 vst1.u8 {q0-q1}, [DEST,:128]!
53 vst1.u8 {q2-q3}, [DEST,:128]!
58 vld1.u8 {q0-q1}, [SRC1,:128]!
60 vld1.u8 {q8-q9}, [SRC2,:128]!
63 vst1.u8 {q0-q1}, [DEST,:128]!
67 vld1.u8 {q0}, [SRC1,:128]!
69 vld1.u8 {q8}, [SRC2,:128]!
71 vst1.u8 {q0}, [DEST,:128]!
75 .global merge16_arm_neon
76 .type merge16_arm_neon, %function
82 vld1.u16 {q0-q1}, [SRC1,:128]!
84 vld1.u16 {q8-q9}, [SRC2,:128]!
87 vld1.u16 {q2-q3}, [SRC1,:128]!
89 vld1.u16 {q10-q11}, [SRC2,:128]!
93 vst1.u16 {q0-q1}, [DEST,:128]!
94 vst1.u16 {q2-q3}, [DEST,:128]!
99 vld1.u16 {q0-q1}, [SRC1,:128]!
101 vld1.u16 {q8-q9}, [SRC2,:128]!
104 vst1.u16 {q0-q1}, [DEST,:128]!
108 vld1.u16 {q0}, [SRC1,:128]!
110 vld1.u16 {q8}, [SRC2,:128]!
112 vst1.u16 {q0}, [DEST,:128]!
117 .type merge8_armv6, %function
138 .global merge16_armv6
139 .type merge16_armv6, %function