2 * Copyright © 2022 Rémi Denis-Courmont.
4 * This file is part of FFmpeg.
6 * FFmpeg is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * FFmpeg 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 GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with FFmpeg; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 #include "libavutil/riscv/asm.S"
23 func ff_int32_to_float_fmul_scalar_rvv, zve32f
27 vsetvli t0, a2, e32, m8, ta, ma
32 vfmul.vf v24, v24, fa0
40 func ff_int32_to_float_fmul_array8_rvv, zve32f
43 1: vsetvli t0, a4, e32, m1, ta, ma
47 vsetvli t3, zero, e32, m8, ta, ma
49 vsetvli zero, a4, e32, m1, ta, ma
50 vfmul.vv v16, v16, v24
52 vfmul.vv v17, v17, v24
54 vfmul.vv v18, v18, v24
56 vfmul.vv v19, v19, v24
57 vfmul.vv v20, v20, v24
58 vfmul.vv v21, v21, v24
59 vfmul.vv v22, v22, v24
60 vfmul.vv v23, v23, v24