History

lavc/aacpsdsp: unroll RISC-V V add_squares

This slightly improves performance with the Device Under Test.

Rémi Denis-Courmont committed 3 years ago

Commit 2eb55151 parent be7ac511 file · +2 −2Browse files

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/riscv/aacpsdsp_rvv.S+2−2
@@ -22,13 +22,13 @@ · 21 unmodified lines
22 22
23func ff_ps_add_squares_rvv, zve32f23func ff_ps_add_squares_rvv, zve32f
241:241:
25 vsetvli t0, a2, e32, m1, ta, ma25 vsetvli t0, a2, e32, m4, ta, ma
26 vlseg2e32.v v24, (a1)26 vlseg2e32.v v24, (a1)
27 sub a2, a2, t027 sub a2, a2, t0
28 vle32.v v16, (a0)28 vle32.v v16, (a0)
29 sh3add a1, t0, a129 sh3add a1, t0, a1
30 vfmacc.vv v16, v24, v2430 vfmacc.vv v16, v24, v24
31 vfmacc.vv v16, v25, v2531 vfmacc.vv v16, v28, v28
32 vse32.v v16, (a0)32 vse32.v v16, (a0)
33 sh2add a0, t0, a033 sh2add a0, t0, a0
34 bnez a2, 1b34 bnez a2, 1b

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t