[FFmpeg-devel] [PATCH] riscv: fix builds without Zbb support
Rémi Denis-Courmont
remi at remlab.net
Wed Nov 15 19:59:22 EET 2023
---
libavutil/riscv/asm.S | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/libavutil/riscv/asm.S b/libavutil/riscv/asm.S
index 6ca74f263a..0a9e2e0d3f 100644
--- a/libavutil/riscv/asm.S
+++ b/libavutil/riscv/asm.S
@@ -92,6 +92,11 @@
shnadd 3, \rd, \rs1, \rs2
.endm
#endif
+#if !defined (__riscv_zbb)
+ .macro min rd, rs1, rs2
+ .insn r OP, 4, 5, \rd, \rs1, \rs2
+ .endm
+#endif
/* Convenience macro to load a Vector type (vtype) as immediate */
.macro lvtypei rd, e, m=m1, tp=tu, mp=mu
--
2.42.0
More information about the ffmpeg-devel
mailing list