shithub: openh264

Download patch

ref: e22d731f26ef34d5092a4533a0107f19f4caf2cb
parent: a45c10cf9128d36c4fd85deb63756c215a135d99
author: Sindre Aamås <saamas@cisco.com>
date: Tue Jan 19 16:33:40 EST 2016

[Encoder] yasm-compatible vinserti128 syntax in DCT asm

--- a/codec/encoder/core/x86/dct.asm
+++ b/codec/encoder/core/x86/dct.asm
@@ -613,16 +613,16 @@
 
 ; out=%1,%2,%3,%4 pDct=%5 clobber=%6
 %macro AVX2_Load4x16P 6
-    vmovdqa       x%2, [%5+0x00]
-    vinserti128   y%2, [%5+0x40], 1
-    vmovdqa       x%6, [%5+0x20]
-    vinserti128   y%6, [%5+0x60], 1
+    vmovdqa       x%2,      [%5+0x00]
+    vinserti128   y%2, y%2, [%5+0x40], 1
+    vmovdqa       x%6,      [%5+0x20]
+    vinserti128   y%6, y%6, [%5+0x60], 1
     vpunpcklqdq   y%1, y%2, y%6
     vpunpckhqdq   y%2, y%2, y%6
-    vmovdqa       x%4, [%5+0x10]
-    vinserti128   y%4, [%5+0x50], 1
-    vmovdqa       x%6, [%5+0x30]
-    vinserti128   y%6, [%5+0x70], 1
+    vmovdqa       x%4,      [%5+0x10]
+    vinserti128   y%4, y%4, [%5+0x50], 1
+    vmovdqa       x%6,      [%5+0x30]
+    vinserti128   y%6, y%6, [%5+0x70], 1
     vpunpcklqdq   y%3, y%4, y%6
     vpunpckhqdq   y%4, y%4, y%6
 %endmacro