diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-01-15 19:12:18 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-01-15 19:12:24 +0400 |
commit | 77041e2474a107bb86259ab2c8b1bc6600ed093f (patch) | |
tree | 277dab3d3787cb6e12441f465c4881baf03bf1b4 /libavutil/x86/x86util.asm | |
parent | b52925d2cde98b2a3ffaf451248191c8627d356a (diff) | |
parent | 094a7405e5d8463d7d167d893e04934ec1a84ecd (diff) |
Merge commit '094a7405e5d8463d7d167d893e04934ec1a84ecd'
* commit '094a7405e5d8463d7d167d893e04934ec1a84ecd':
x86: ABSB: port to cpuflags
sdp: Include SRTP crypto params if using the srtp protocol
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/x86/x86util.asm')
-rw-r--r-- | libavutil/x86/x86util.asm | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/libavutil/x86/x86util.asm b/libavutil/x86/x86util.asm index 6768dec595..babe34cf28 100644 --- a/libavutil/x86/x86util.asm +++ b/libavutil/x86/x86util.asm @@ -210,10 +210,14 @@ %endif %endmacro -%macro ABSB_MMX 2 +%macro ABSB 2 ; source mmreg, temp mmreg (unused for ssse3) +%if cpuflag(ssse3) + pabsb %1, %1 +%else pxor %2, %2 psubb %2, %1 pminub %1, %2 +%endif %endmacro %macro ABSB2_MMX 4 @@ -236,10 +240,6 @@ psubd %2, %4 %endmacro -%macro ABSB_SSSE3 2 - pabsb %1, %1 -%endmacro - %macro ABSB2_SSSE3 4 pabsb %1, %1 pabsb %2, %2 @@ -250,7 +250,6 @@ ABS2 %3, %4, %5, %6 %endmacro -%define ABSB ABSB_MMX %define ABSB2 ABSB2_MMX %macro SPLATB_LOAD 3 |