diff options
author | Henrik Gramner <henrik@gramner.com> | 2023-09-29 11:36:23 +0000 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2023-11-08 13:49:08 +0100 |
commit | ed8ddf0bd3b188a08ae0b4e21235f7e3e6ce501b (patch) | |
tree | f312ea96a0a409b44874d6644eb3d95ab4737ffc /tests/Makefile | |
parent | 5a2ca4bf7a3f8ba566283b48f0b8558d8c221e41 (diff) | |
download | ffmpeg-ed8ddf0bd3b188a08ae0b4e21235f7e3e6ce501b.tar.gz |
x86inc: Add REPX macro to repeat instructions/operations
When operating on large blocks of data it's common to repeatedly use
an instruction on multiple registers. Using the REPX macro makes it
easy to quickly write dense code to achieve this without having to
explicitly duplicate the same instruction over and over.
For example,
REPX {paddw x, m4}, m0, m1, m2, m3
REPX {mova [r0+16*x], m5}, 0, 1, 2, 3
will expand to
paddw m0, m4
paddw m1, m4
paddw m2, m4
paddw m3, m4
mova [r0+16*0], m5
mova [r0+16*1], m5
mova [r0+16*2], m5
mova [r0+16*3], m5
Commit taken from x264:
https://code.videolan.org/videolan/x264/-/commit/6d10612ab0007f8f60dd2399182efd696da3ffe4
Signed-off-by: Frank Plowman <post@frankplowman.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'tests/Makefile')
0 files changed, 0 insertions, 0 deletions