aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil
diff options
context:
space:
mode:
authorRémi Denis-Courmont <remi@remlab.net>2023-11-15 19:59:06 +0200
committerRémi Denis-Courmont <remi@remlab.net>2023-11-18 22:01:59 +0200
commitcd6089dc9ce9406274ca08ea14df95cff0133fd3 (patch)
tree0f5fa8a582632cf2f3b5aa9d9058a6c2b2955435 /libavutil
parent2d4aef8982791b59000a01ba334a8a3bd3a8d5b3 (diff)
downloadffmpeg-cd6089dc9ce9406274ca08ea14df95cff0133fd3.tar.gz
riscv: fix builds without Zbb support
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/riscv/asm.S5
1 files changed, 5 insertions, 0 deletions
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