summaryrefslogtreecommitdiff
path: root/libavcodec/x86/huffyuvdsp.asm
diff options
context:
space:
mode:
authorChristophe Gisquet <christophe.gisquet@gmail.com>2014-06-15 01:05:03 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-06-15 13:19:27 +0200
commit91076128185e96725af18e1b532c6060e7f0c150 (patch)
tree066a5bfac549b5b6d7e90358593e18041282b232 /libavcodec/x86/huffyuvdsp.asm
parent2a1158ff3b29461f944ee358963105de4d98d63c (diff)
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/x86/huffyuvdsp.asm')
-rw-r--r--libavcodec/x86/huffyuvdsp.asm16
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]