avutil/x86util : add macro for loading a 128 bits constants in an xmm or in each...
authorMartin Vignali <martin.vignali@gmail.com>
Sat, 2 Dec 2017 17:22:14 +0000 (18:22 +0100)
committerMartin Vignali <martin.vignali@gmail.com>
Sat, 2 Dec 2017 17:25:15 +0000 (18:25 +0100)
libavutil/x86/x86util.asm

index 2141912..d7cd996 100644 (file)
 %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