diff options
author | Martin Vignali <martin.vignali@gmail.com> | 2017-12-02 18:22:14 +0100 |
---|---|---|
committer | Martin Vignali <martin.vignali@gmail.com> | 2017-12-02 18:25:15 +0100 |
commit | b37196adff750b49cdf2d2739deb069cfcbfd4eb (patch) | |
tree | 14c7115673f4f54721db3960d1a325018dbe5883 /libavutil/x86 | |
parent | bbfcb1b7c891319a3eb4420c144ddae471942631 (diff) | |
download | ffmpeg-b37196adff750b49cdf2d2739deb069cfcbfd4eb.tar.gz |
avutil/x86util : add macro for loading a 128 bits constants in an xmm or in each part of an ymm in order to simplify avx2 asm func
Diffstat (limited to 'libavutil/x86')
-rw-r--r-- | libavutil/x86/x86util.asm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libavutil/x86/x86util.asm b/libavutil/x86/x86util.asm index 21419125d5..d7cd996842 100644 --- a/libavutil/x86/x86util.asm +++ b/libavutil/x86/x86util.asm @@ -890,6 +890,14 @@ %endif %endmacro +%macro VBROADCASTI128 2 ; dst xmm/ymm, src : 128bits val +%if mmsize > 16 + vbroadcasti128 %1, %2 +%else + mova %1, %2 +%endif +%endmacro + %macro SHUFFLE_MASK_W 8 %rep 8 %if %1>=0x80 |