1 @*****************************************************************************
2 @ amplify.S : ARM NEON software amplification
3 @*****************************************************************************
4 @ Copyright (C) 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 @****************************************************************************/
30 .global amplify_float_arm_neon
31 .type amplify_float_arm_neon, %function
32 amplify_float_arm_neon:
39 vld1.f32 {d16-d17}, [SRC,:128]!
41 vmul.f32 d16, d16, d0[0]
42 vmul.f32 d17, d17, d0[0]
45 vld1.f32 {d18-d19}, [SRC,:128]!
47 vmul.f32 d18, d18, d0[0]
48 vmul.f32 d19, d19, d0[0]
52 vld1.f32 {d20-d21}, [SRC,:128]!
54 vmul.f32 d20, d20, d0[0]
55 vmul.f32 d21, d21, d0[0]
56 vst1.f32 {d16-d17}, [DST,:128]!
59 vld1.f32 {d16-d17}, [SRC,:128]!
61 vmul.f32 d16, d16, d0[0]
62 vmul.f32 d17, d17, d0[0]
63 vst1.f32 {d18-d19}, [DST,:128]!
66 vld1.f32 {d18-d19}, [SRC,:128]!
68 vmul.f32 d18, d18, d0[0]
69 vmul.f32 d19, d19, d0[0]
70 vst1.f32 {d20-d21}, [DST,:128]!
73 2: vst1.f32 {d16-d17}, [DST,:128]!
74 vst1.f32 {d18-d19}, [DST,:128]!
76 3: vst1.f32 {d18-d19}, [DST,:128]!
77 vst1.f32 {d20-d21}, [DST,:128]!
79 4: vst1.f32 {d20-d21}, [DST,:128]!
80 5: vst1.f32 {d16-d17}, [DST,:128]!