1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00
FFmpeg/libavutil/x86
Henrik Gramner ed8ddf0bd3 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:
6d10612ab0

Signed-off-by: Frank Plowman <post@frankplowman.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2023-11-08 13:49:08 +01:00
..
asm.h
bswap.h
cpu.c
cpu.h
cpuid.asm
emms.asm
fixed_dsp_init.c
fixed_dsp.asm
float_dsp_init.c
float_dsp.asm
imgutils_init.c
imgutils.asm
intmath.h
intreadwrite.h
lls_init.c
lls.asm
Makefile
pixelutils_init.c
pixelutils.asm
pixelutils.h
timer.h
tx_float_init.c
tx_float.asm
w64xmmtest.h
x86inc.asm x86inc: Add REPX macro to repeat instructions/operations 2023-11-08 13:49:08 +01:00
x86util.asm