[FFmpeg-cvslog] lavu/riscv: allow requesting a second extension

Rémi Denis-Courmont git at videolan.org
Fri May 10 23:14:09 EEST 2024


ffmpeg | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue May  7 21:07:43 2024 +0300| [89029baebd018f4e25a7555a34ef9db599977c6c] | committer: Rémi Denis-Courmont

lavu/riscv: allow requesting a second extension

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

 libavutil/riscv/asm.S | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/libavutil/riscv/asm.S b/libavutil/riscv/asm.S
index 0a9e2e0d3f..9d76ab5617 100644
--- a/libavutil/riscv/asm.S
+++ b/libavutil/riscv/asm.S
@@ -36,13 +36,16 @@
 #define HWD
 #endif
 
-        .macro func sym, ext=
+        .macro func sym, ext1=, ext2=
             .text
             .align 2
 
             .option push
-            .ifnb \ext
-            .option arch, +\ext
+            .ifnb \ext1
+            .option arch, +\ext1
+            .ifnb \ext2
+            .option arch, +\ext2
+            .endif
             .endif
 
             .global \sym



More information about the ffmpeg-cvslog mailing list