ffmpeg | branch: master | Rémi Denis-Courmont <r...@remlab.net> | Mon Jul 22 20:01:17 2024 +0300| [1e7ab200ee2c6d1992ba9a68e6467ae6b7348dec] | committer: Rémi Denis-Courmont
lavu/riscv: allow any number of extensions This reworks the func/endfunc macros to support any number of ISA extension as parameters. > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1e7ab200ee2c6d1992ba9a68e6467ae6b7348dec --- libavutil/riscv/asm.S | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/libavutil/riscv/asm.S b/libavutil/riscv/asm.S index 2cf4f7b7ab..78e9defbd4 100644 --- a/libavutil/riscv/asm.S +++ b/libavutil/riscv/asm.S @@ -36,17 +36,18 @@ #define HWD #endif - .macro func sym, ext1=, ext2= + .macro archadd ext=, more:vararg + .ifnb \ext + .option arch, +\ext + archadd \more + .endif + .endm + + .macro func sym, exts:vararg .text .align 2 - .option push - .ifnb \ext1 - .option arch, +\ext1 - .ifnb \ext2 - .option arch, +\ext2 - .endif - .endif + archadd \exts .global \sym .hidden \sym _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".