diff options
author | Diego Biurrun <diego@biurrun.de> | 2012-07-08 01:30:30 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2012-11-09 21:31:31 +0100 |
commit | 4b60fac4199680957b15b7a08c5df47e47c6e25e (patch) | |
tree | bfb448fddfd08eda0cb0137db7fafbeb4879f579 /libavutil/x86 | |
parent | 4d1f69f2440041b58d5a31bcfcff83ee3c88ac7e (diff) | |
download | ffmpeg-4b60fac4199680957b15b7a08c5df47e47c6e25e.tar.gz |
x86: PALIGNR: port to cpuflags
Diffstat (limited to 'libavutil/x86')
-rw-r--r-- | libavutil/x86/x86util.asm | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libavutil/x86/x86util.asm b/libavutil/x86/x86util.asm index b35d5945d8..31163eec7b 100644 --- a/libavutil/x86/x86util.asm +++ b/libavutil/x86/x86util.asm @@ -280,7 +280,14 @@ %endif %endmacro -%macro PALIGNR_MMX 4-5 ; [dst,] src1, src2, imm, tmp +%macro PALIGNR 4-5 +%if cpuflag(ssse3) +%if %0==5 + palignr %1, %2, %3, %4 +%else + palignr %1, %2, %3 +%endif +%elif cpuflag(mmx) ; [dst,] src1, src2, imm, tmp %define %%dst %1 %if %0==5 %ifnidn %1, %2 @@ -299,13 +306,6 @@ psrldq %4, %3 %endif por %%dst, %4 -%endmacro - -%macro PALIGNR_SSSE3 4-5 -%if %0==5 - palignr %1, %2, %3, %4 -%else - palignr %1, %2, %3 %endif %endmacro |