[FFmpeg-cvslog] riscv: fix builds without Zbb support

Rémi Denis-Courmont git at videolan.org
Sat Nov 18 22:04:48 EET 2023


ffmpeg | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Nov 15 19:59:06 2023 +0200| [cd6089dc9ce9406274ca08ea14df95cff0133fd3] | committer: Rémi Denis-Courmont

riscv: fix builds without Zbb support

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cd6089dc9ce9406274ca08ea14df95cff0133fd3
---

 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



More information about the ffmpeg-cvslog mailing list