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 @****************************************************************************/
24 #if HAVE_AS_FPU_DIRECTIVE
33 function amplify_float_arm_neon
41 vld1.f32 {d16-d17}, [SRC,:128]!
43 vmul.f32 d16, d16, d0[0]
44 vmul.f32 d17, d17, d0[0]
47 vld1.f32 {d18-d19}, [SRC,:128]!
49 vmul.f32 d18, d18, d0[0]
50 vmul.f32 d19, d19, d0[0]
54 vld1.f32 {d20-d21}, [SRC,:128]!
56 vmul.f32 d20, d20, d0[0]
57 vmul.f32 d21, d21, d0[0]
58 vst1.f32 {d16-d17}, [DST,:128]!
61 vld1.f32 {d16-d17}, [SRC,:128]!
63 vmul.f32 d16, d16, d0[0]
64 vmul.f32 d17, d17, d0[0]
65 vst1.f32 {d18-d19}, [DST,:128]!
68 vld1.f32 {d18-d19}, [SRC,:128]!
70 vmul.f32 d18, d18, d0[0]
71 vmul.f32 d19, d19, d0[0]
72 vst1.f32 {d20-d21}, [DST,:128]!
75 2: vst1.f32 {d16-d17}, [DST,:128]!
76 vst1.f32 {d18-d19}, [DST,:128]!
78 3: vst1.f32 {d18-d19}, [DST,:128]!
79 vst1.f32 {d20-d21}, [DST,:128]!
81 4: vst1.f32 {d20-d21}, [DST,:128]!
82 5: vst1.f32 {d16-d17}, [DST,:128]!