diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-01-15 19:16:13 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-01-15 19:16:18 +0400 |
commit | b7ede94bbd29615799f550789cddba6a41527d28 (patch) | |
tree | 50db5ae584ed434a012c2d408202f3b09990fbd9 /libavutil/x86/x86util.asm | |
parent | 77041e2474a107bb86259ab2c8b1bc6600ed093f (diff) | |
parent | 320e1d0df3dfbfabb248d8aff784320dd20183a2 (diff) |
Merge remote-tracking branch 'qatar/master'
* qatar/master:
x86: ABSB2: port to cpuflags
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/x86/x86util.asm')
-rw-r--r-- | libavutil/x86/x86util.asm | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/libavutil/x86/x86util.asm b/libavutil/x86/x86util.asm index babe34cf28..8fac13a9b3 100644 --- a/libavutil/x86/x86util.asm +++ b/libavutil/x86/x86util.asm @@ -220,13 +220,18 @@ %endif %endmacro -%macro ABSB2_MMX 4 +%macro ABSB2 4 ; src1, src2, tmp1, tmp2 (tmp1/2 unused for SSSE3) +%if cpuflag(ssse3) + pabsb %1, %1 + pabsb %2, %2 +%else pxor %3, %3 pxor %4, %4 psubb %3, %1 psubb %4, %2 pminub %1, %3 pminub %2, %4 +%endif %endmacro %macro ABSD2_MMX 4 @@ -240,18 +245,11 @@ psubd %2, %4 %endmacro -%macro ABSB2_SSSE3 4 - pabsb %1, %1 - pabsb %2, %2 -%endmacro - %macro ABS4 6 ABS2 %1, %2, %5, %6 ABS2 %3, %4, %5, %6 %endmacro -%define ABSB2 ABSB2_MMX - %macro SPLATB_LOAD 3 %if cpuflag(ssse3) movd %1, [%2-3] |