[FFmpeg-cvslog] avcodec/x86/lossless_videodsp.asm : make macro for add_left_pred_unaligned in order to add avx2 version

Martin Vignali git at videolan.org
Sat Dec 9 16:17:45 EET 2017


ffmpeg | branch: master | Martin Vignali <martin.vignali at gmail.com> | Sat Dec  2 19:04:11 2017 +0100| [cfbcea1cca7f4d5b92a17778f78427794057eb29] | committer: Martin Vignali

avcodec/x86/lossless_videodsp.asm : make macro for add_left_pred_unaligned in order to add avx2 version

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cfbcea1cca7f4d5b92a17778f78427794057eb29
---

 libavcodec/x86/lossless_videodsp.asm | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

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);



More information about the ffmpeg-cvslog mailing list