Message ID | 20230929113622.122769-1-post@frankplowman.com |
---|---|
State | Accepted |
Commit | ed8ddf0bd3b188a08ae0b4e21235f7e3e6ce501b |
Headers | show |
Series | [FFmpeg-devel] x86inc: Add REPX macro to repeat instructions/operations | expand |
Context | Check | Description |
---|---|---|
yinshiyou/make_loongarch64 | success | Make finished |
yinshiyou/make_fate_loongarch64 | success | Make fate finished |
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
On Fri, Sep 29, 2023 at 1:38 PM Frank Plowman <post@frankplowman.com> wrote: > libavutil/x86/x86inc.asm | 10 ++++++++++ > 1 file changed, 10 insertions(+) LGTM. As a side note https://code.videolan.org/videolan/x86inc.asm is the upstream repo for x86inc.asm.
Quoting Henrik Gramner via ffmpeg-devel (2023-10-01 19:55:57) > On Fri, Sep 29, 2023 at 1:38 PM Frank Plowman <post@frankplowman.com> wrote: > > libavutil/x86/x86inc.asm | 10 ++++++++++ > > 1 file changed, 10 insertions(+) > > LGTM. pushed
diff --git a/libavutil/x86/x86inc.asm b/libavutil/x86/x86inc.asm index 251ee797de..e099ee4b10 100644 --- a/libavutil/x86/x86inc.asm +++ b/libavutil/x86/x86inc.asm @@ -232,6 +232,16 @@ DECLARE_REG_TMP_SIZE 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14 %define gprsize 4 %endif +; Repeats an instruction/operation for multiple arguments. +; Example usage: "REPX {psrlw x, 8}, m0, m1, m2, m3" +%macro REPX 2-* ; operation, args + %xdefine %%f(x) %1 + %rep %0 - 1 + %rotate 1 + %%f(%1) + %endrep +%endmacro + %macro PUSH 1 push %1 %ifidn rstk, rsp