[FFmpeg-devel] [PATCHv2 0/6] RISC-V CPU extensions
Rémi Denis-Courmont
remi at remlab.net
Sat Sep 17 15:45:13 EEST 2022
Hi,
This adds configure, compile-time, run-time detection for RISC-V scalar
and vector extensions. Also a couple of scalar optimisations.
----------------------------------------------------------------
Rémi Denis-Courmont (6):
lavu/cpu: detect RISC-V base extensions
lavu/cpu: CPU flags for the RISC-V Vector extension
configure: probe RISC-V Vector extension
lavu/riscv: initial common header for assembler macros
lavc/audiodsp: add RISC-V F float vector clip
lavc/pixblockdsp: RISC-V scalar optimisations
Makefile | 2 +-
configure | 15 +++++
ffbuild/arch.mak | 2 +
libavcodec/audiodsp.c | 2 +
libavcodec/audiodsp.h | 1 +
libavcodec/pixblockdsp.c | 2 +
libavcodec/pixblockdsp.h | 2 +
libavcodec/riscv/Makefile | 4 ++
libavcodec/riscv/audiodsp_init.c | 31 +++++++++++
libavcodec/riscv/audiodsp_rvf.S | 46 +++++++++++++++
libavcodec/riscv/pixblockdsp_init.c | 43 ++++++++++++++
libavcodec/riscv/pixblockdsp_rvi.S | 57 +++++++++++++++++++
libavutil/cpu.c | 13 +++++
libavutil/cpu.h | 9 +++
libavutil/cpu_internal.h | 3 +
libavutil/riscv/Makefile | 1 +
libavutil/riscv/asm.S | 74 ++++++++++++++++++++++++
libavutil/riscv/cpu.c | 108 ++++++++++++++++++++++++++++++++++++
tests/checkasm/checkasm.c | 8 +++
19 files changed, 422 insertions(+), 1 deletion(-)
create mode 100644 libavcodec/riscv/Makefile
create mode 100644 libavcodec/riscv/audiodsp_init.c
create mode 100644 libavcodec/riscv/audiodsp_rvf.S
create mode 100644 libavcodec/riscv/pixblockdsp_init.c
create mode 100644 libavcodec/riscv/pixblockdsp_rvi.S
create mode 100644 libavutil/riscv/Makefile
create mode 100644 libavutil/riscv/asm.S
create mode 100644 libavutil/riscv/cpu.c
--
Rémi Denis-Courmont
http://www.remlab.net/
More information about the ffmpeg-devel
mailing list