2 * ARM NEON optimised Format Conversion Utils
3 * Copyright (c) 2008 Mans Rullgard <mans@mansr.com>
4 * Copyright (c) 2015 Janne Grunau <janne-libav@jannau.net>b
6 * This file is part of FFmpeg.
8 * FFmpeg is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
13 * FFmpeg is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with FFmpeg; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
24 #include "libavutil/arm/asm.S"
26 function ff_int32_to_float_fmul_scalar_neon, export=1
32 vld1.32 {q1},[r1,:128]!
34 vld1.32 {q2},[r1,:128]!
41 vld1.32 {q1},[r1,:128]!
43 vld1.32 {q2},[r1,:128]!
45 vst1.32 {q9}, [r0,:128]!
46 vst1.32 {q10},[r0,:128]!
48 2: vst1.32 {q9}, [r0,:128]!
49 vst1.32 {q10},[r0,:128]!
54 function ff_int32_to_float_fmul_array8_neon, export=1
60 vld1.32 {q0-q1}, [r2,:128]!
61 vld1.32 {q2-q3}, [r2,:128]!
74 vst1.32 {q0-q1}, [r1,:128]!
75 vst1.32 {q2-q3}, [r1,:128]!
80 vld1.32 {q0-q1}, [r2,:128]
81 vld1.32 {d16[],d17[]}, [r3]
86 vst1.32 {q0-q1}, [r1,:128]