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
4343
4444 %macro AC3_EXPONENT_MIN 0
4545 cglobal ac3_exponent_min, 3, 4, 2, exp, reuse_blks, expn, offset
46− shl reuse_blksq, 8
46+ shl reuse_blksd, 8
4747 jz .end
4848 LOOP_ALIGN
4949 .nextexp:
@@ -57,7 +57,7 @@ cglobal ac3_exponent_min, 3, 4, 2, exp, reuse_blks, expn, offset · 7 unmodified lines
5757 jae .nextblk
5858 mova [expq], m0
5959 add expq, mmsize
60− sub expnq, mmsize
60+ sub expnd, mmsize
6161 jg .nextexp
6262 .end:
6363 RET
@@ -71,7 +71,7 @@ AC3_EXPONENT_MIN · 7 unmodified lines
7171 %undef LOOP_ALIGN
7272
7373 ;-----------------------------------------------------------------------------
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)
7575 ;-----------------------------------------------------------------------------
7676
7777 INIT_XMM sse2
@@ -217,6 +217,7 @@ cglobal ac3_compute_mantissa_size, 1, 2, 4, mant_cnt, sum · 139 unmodified lines
217217
218218 %macro AC3_EXTRACT_EXPONENTS 0
219219 cglobal ac3_extract_exponents, 3, 3, 4, exp, coef, len
220+ movsxdifnidn lenq, lend
220221 add expq, lenq
221222 lea coefq, [coefq+4*lenq]
222223 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