diff options
author | RĂ©mi Denis-Courmont <remi@remlab.net> | 2022-09-26 17:52:23 +0300 |
---|---|---|
committer | Lynne <dev@lynne.ee> | 2022-09-27 13:19:52 +0200 |
commit | 04d092e7d5204f1aebb7e61f92bb263873e0f735 (patch) | |
tree | d1047a4697e6b3d7ec746d0fbf16dac161eb441c /libavcodec/alacenc.c | |
parent | 746f1ff36ac0d232687820fbde4e4efc79093af7 (diff) | |
download | ffmpeg-04d092e7d5204f1aebb7e61f92bb263873e0f735.tar.gz |
lavc/audiodsp: RISC-V F vector_clipf
RV64G supports MIN & MAX instructions natively only on floating point
registers, not general purpose ones. The later would require the Zbb
extension. Due to that, it is actually faster to perform the clipping
"properly" in FPU.
Benchmarks on SiFive U74-MC (courtesy of Shanghai StarFive Tech):
audiodsp.vector_clipf_c: 29551.5
audiodsp.vector_clipf_rvf: 17871.0
Also tried unrolling with 2 or 8 elements but it gets worse either way.
Diffstat (limited to 'libavcodec/alacenc.c')
0 files changed, 0 insertions, 0 deletions