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 /libavcodec | |
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 'libavcodec')
-rw-r--r-- | libavcodec/x86/huffyuvdsp.asm | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/libavcodec/x86/huffyuvdsp.asm b/libavcodec/x86/huffyuvdsp.asm index d13c08a7de..cc48556f9b 100644 --- a/libavcodec/x86/huffyuvdsp.asm +++ b/libavcodec/x86/huffyuvdsp.asm @@ -34,22 +34,6 @@ SECTION_TEXT ; void ff_add_hfyu_median_pred_mmxext(uint8_t *dst, const uint8_t *top, ; const uint8_t *diff, int w, ; int *left, int *left_top) -%macro LSHIFT 2 -%if mmsize > 8 - pslldq %1, %2 -%else - psllq %1, 8*(%2) -%endif -%endmacro - -%macro RSHIFT 2 -%if mmsize > 8 - psrldq %1, %2 -%else - psrlq %1, 8*(%2) -%endif -%endmacro - %macro HFYU_MEDIAN 0 cglobal add_hfyu_median_pred, 6,6,8, dst, top, diff, w, left, left_top movu m0, [topq] |