aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/x86
diff options
context:
space:
mode:
authorMartin Vignali <martin.vignali@gmail.com>2017-12-02 19:04:11 +0100
committerMartin Vignali <martin.vignali@gmail.com>2017-12-09 15:15:59 +0100
commitcfbcea1cca7f4d5b92a17778f78427794057eb29 (patch)
treed206bdb8c19393b79843974017ce360c87949db7 /libavcodec/x86
parent5bda11e70ef109f55a766bdd4ae14b3afb2c2ecc (diff)
downloadffmpeg-cfbcea1cca7f4d5b92a17778f78427794057eb29.tar.gz
avcodec/x86/lossless_videodsp.asm : make macro for add_left_pred_unaligned in order to add avx2 version
Diffstat (limited to 'libavcodec/x86')
-rw-r--r--libavcodec/x86/lossless_videodsp.asm6
1 files changed, 5 insertions, 1 deletions
diff --git a/libavcodec/x86/lossless_videodsp.asm b/libavcodec/x86/lossless_videodsp.asm
index ba4d4f0153..663bf6153e 100644
--- a/libavcodec/x86/lossless_videodsp.asm
+++ b/libavcodec/x86/lossless_videodsp.asm
@@ -164,7 +164,7 @@ cglobal add_left_pred, 3,3,7, dst, src, w, left
psllq m0, 56
ADD_LEFT_LOOP 1, 1
-INIT_XMM ssse3
+%macro ADD_LEFT_PRED_UNALIGNED 0
cglobal add_left_pred_unaligned, 3,3,7, dst, src, w, left
mova m5, [pb_15]
mova m6, [pb_zzzzzzzz77777777]
@@ -181,6 +181,10 @@ cglobal add_left_pred_unaligned, 3,3,7, dst, src, w, left
ADD_LEFT_LOOP 0, 1
.src_unaligned:
ADD_LEFT_LOOP 0, 0
+%endmacro
+
+INIT_XMM ssse3
+ADD_LEFT_PRED_UNALIGNED
;------------------------------------------------------------------------------
; void ff_add_bytes(uint8_t *dst, uint8_t *src, ptrdiff_t w);