diff options
author | Christophe Gisquet <christophe.gisquet@gmail.com> | 2014-06-15 01:05:03 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-06-15 13:19:27 +0200 |
commit | 91076128185e96725af18e1b532c6060e7f0c150 (patch) | |
tree | 066a5bfac549b5b6d7e90358593e18041282b232 /libavfilter/x86/vf_yadif.asm | |
parent | 2a1158ff3b29461f944ee358963105de4d98d63c (diff) | |
download | ffmpeg-91076128185e96725af18e1b532c6060e7f0c150.tar.gz |
x86util: add and use RSHIFT/LSHIFT macros
Those macros take a byte number as shift argument, as this argument
differs between MMX and SSE2 instructions.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/x86/vf_yadif.asm')
-rw-r--r-- | libavfilter/x86/vf_yadif.asm | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/libavfilter/x86/vf_yadif.asm b/libavfilter/x86/vf_yadif.asm index 4b80bf3d7c..a29620ce55 100644 --- a/libavfilter/x86/vf_yadif.asm +++ b/libavfilter/x86/vf_yadif.asm @@ -39,11 +39,7 @@ SECTION .text pavgb m5, m3 pand m4, [pb_1] psubusb m5, m4 -%if mmsize == 16 - psrldq m5, 1 -%else - psrlq m5, 8 -%endif + RSHIFT m5, 1 punpcklbw m5, m7 mova m4, m2 psubusb m2, m3 @@ -51,13 +47,8 @@ SECTION .text pmaxub m2, m3 mova m3, m2 mova m4, m2 -%if mmsize == 16 - psrldq m3, 1 - psrldq m4, 2 -%else - psrlq m3, 8 - psrlq m4, 16 -%endif + RSHIFT m3, 1 + RSHIFT m4, 2 punpcklbw m2, m7 punpcklbw m3, m7 punpcklbw m4, m7 |