History

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

Should fix checkasm failures on win64.

James Almer committed 2 years ago

Commit 2d9fd811 parent 3c154e81 file · +3 −3Browse files

Unified · Split

libavcodec/x86/lossless_audiodsp.asm+3−3
@@ -26,7 +26,7 @@ SECTION .text · 25 unmodified lines
26; int order, int mul)26; int order, int mul)
27INIT_XMM sse227INIT_XMM sse2
28cglobal scalarproduct_and_madd_int16, 4,4,8, v1, v2, v3, order, mul28cglobal scalarproduct_and_madd_int16, 4,4,8, v1, v2, v3, order, mul
29 shl orderq, 129 shl orderd, 1
30 movd m7, mulm30 movd m7, mulm
31 pshuflw m7, m7, 031 pshuflw m7, m7, 0
32 punpcklqdq m7, m732 punpcklqdq m7, m7
@@ -62,7 +62,7 @@ INIT_XMM sse4 · 29 unmodified lines
62; int ff_scalarproduct_and_madd_int32(int16_t *v1, int32_t *v2, int16_t *v3,62; int ff_scalarproduct_and_madd_int32(int16_t *v1, int32_t *v2, int16_t *v3,
63; int order, int mul)63; int order, int mul)
64cglobal scalarproduct_and_madd_int32, 4,4,8, v1, v2, v3, order, mul64cglobal scalarproduct_and_madd_int32, 4,4,8, v1, v2, v3, order, mul
65 shl orderq, 165 shl orderd, 1
66 movd m7, mulm66 movd m7, mulm
67 SPLATW m7, m767 SPLATW m7, m7
68 pxor m6, m668 pxor m6, m6
@@ -140,7 +140,7 @@ align 16 · 71 unmodified lines
140; int order, int mul)140; int order, int mul)
141INIT_XMM ssse3141INIT_XMM ssse3
142cglobal scalarproduct_and_madd_int16, 4,5,10, v1, v2, v3, order, mul142cglobal scalarproduct_and_madd_int16, 4,5,10, v1, v2, v3, order, mul
143 shl orderq, 1143 shl orderd, 1
144 movd m7, mulm144 movd m7, mulm
145 pshuflw m7, m7, 0145 pshuflw m7, m7, 0
146 punpcklqdq m7, m7146 punpcklqdq m7, m7

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t