forked from FFmpeg/FFmpeg
lavu/riscv: allow any number of extensions
This reworks the func/endfunc macros to support any number of ISA extension as parameters.
This commit is contained in:
parent
2128c17739
commit
1e7ab200ee
1 changed files with 9 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue