History

x86/ac3dsp: clear the upper 32 bits for input arguments where needed

Fixes checkasm on win64.

James Almer committed 2 years ago

Commit b0ef9e31 parent 17414ab1 file · +4 −3Browse files

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/x86/ac3dsp.asm+4−3
@@ -43,7 +43,7 @@ SECTION .text · 42 unmodified lines
43 43
44%macro AC3_EXPONENT_MIN 044%macro AC3_EXPONENT_MIN 0
45cglobal ac3_exponent_min, 3, 4, 2, exp, reuse_blks, expn, offset45cglobal ac3_exponent_min, 3, 4, 2, exp, reuse_blks, expn, offset
46 shl reuse_blksq, 846 shl reuse_blksd, 8
47 jz .end47 jz .end
48 LOOP_ALIGN48 LOOP_ALIGN
49.nextexp:49.nextexp:
@@ -57,7 +57,7 @@ cglobal ac3_exponent_min, 3, 4, 2, exp, reuse_blks, expn, offset · 7 unmodified lines
57 jae .nextblk57 jae .nextblk
58 mova [expq], m058 mova [expq], m0
59 add expq, mmsize59 add expq, mmsize
60 sub expnq, mmsize60 sub expnd, mmsize
61 jg .nextexp61 jg .nextexp
62.end:62.end:
63 RET63 RET
@@ -71,7 +71,7 @@ AC3_EXPONENT_MIN · 7 unmodified lines
71%undef LOOP_ALIGN71%undef LOOP_ALIGN
72 72
73;-----------------------------------------------------------------------------73;-----------------------------------------------------------------------------
74; void ff_float_to_fixed24(int32_t *dst, const float *src, unsigned int len)74; void ff_float_to_fixed24(int32_t *dst, const float *src, size_t len)
75;-----------------------------------------------------------------------------75;-----------------------------------------------------------------------------
76 76
77INIT_XMM sse277INIT_XMM sse2
@@ -217,6 +217,7 @@ cglobal ac3_compute_mantissa_size, 1, 2, 4, mant_cnt, sum · 139 unmodified lines
217 217
218%macro AC3_EXTRACT_EXPONENTS 0218%macro AC3_EXTRACT_EXPONENTS 0
219cglobal ac3_extract_exponents, 3, 3, 4, exp, coef, len219cglobal ac3_extract_exponents, 3, 3, 4, exp, coef, len
220 movsxdifnidn lenq, lend
220 add expq, lenq221 add expq, lenq
221 lea coefq, [coefq+4*lenq]222 lea coefq, [coefq+4*lenq]
222 neg lenq223 neg lenq

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