[FFmpeg-devel] [PATCH 03/31] lavc/audiodsp: RISC-V F vector_clipf

2022-09-25 Thread remi
From: Rémi Denis-Courmont 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 S

[FFmpeg-devel] [PATCH 03/31] lavc/audiodsp: RISC-V F vector_clipf

2022-09-26 Thread remi
From: Rémi Denis-Courmont 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 S