[FFmpeg-cvslog] x86/: clear the high bits for order in scalarproduct_and_madd functions

James Almer git at videolan.org
Wed Nov 22 19:22:53 EET 2023


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Wed Nov 22 14:18:24 2023 -0300| [2d9fd814d0b017fef1b9d4445174bcd4dc3358dd] | committer: James Almer

x86/: clear the high bits for order in scalarproduct_and_madd functions

Should fix checkasm failures on win64.

Signed-off-by: James Almer <jamrial at gmail.com>

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

 libavcodec/x86/lossless_audiodsp.asm | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/libavcodec/x86/lossless_audiodsp.asm b/libavcodec/x86/lossless_audiodsp.asm
index ff18eb7081..095f3daf33 100644
--- a/libavcodec/x86/lossless_audiodsp.asm
+++ b/libavcodec/x86/lossless_audiodsp.asm
@@ -26,7 +26,7 @@ SECTION .text
 ;                                     int order, int mul)
 INIT_XMM sse2
 cglobal scalarproduct_and_madd_int16, 4,4,8, v1, v2, v3, order, mul
-    shl orderq, 1
+    shl orderd, 1
     movd    m7, mulm
     pshuflw m7, m7, 0
     punpcklqdq m7, m7
@@ -62,7 +62,7 @@ INIT_XMM sse4
 ; int ff_scalarproduct_and_madd_int32(int16_t *v1, int32_t *v2, int16_t *v3,
 ;                                     int order, int mul)
 cglobal scalarproduct_and_madd_int32, 4,4,8, v1, v2, v3, order, mul
-    shl orderq, 1
+    shl orderd, 1
     movd    m7, mulm
     SPLATW  m7, m7
     pxor    m6, m6
@@ -140,7 +140,7 @@ align 16
 ;                                     int order, int mul)
 INIT_XMM ssse3
 cglobal scalarproduct_and_madd_int16, 4,5,10, v1, v2, v3, order, mul
-    shl orderq, 1
+    shl orderd, 1
     movd    m7, mulm
     pshuflw m7, m7, 0
     punpcklqdq m7, m7



More information about the ffmpeg-cvslog mailing list