diff mbox series

[FFmpeg-devel,1/4] lavu/riscv: allow requesting a second extension

Message ID 20240507181101.33385-1-remi@remlab.net
State Accepted
Commit 89029baebd018f4e25a7555a34ef9db599977c6c
Headers show
Series [FFmpeg-devel,1/4] lavu/riscv: allow requesting a second extension | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Rémi Denis-Courmont May 7, 2024, 6:10 p.m. UTC
---
 libavutil/riscv/asm.S | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
diff mbox series

Patch

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