From b0ef9e35e80990b0ba03dd724a6d41cccba100b1 Mon Sep 17 00:00:00 2001 From: James Almer Date: Mon, 8 Apr 2024 13:44:05 -0300 Subject: [PATCH] x86/ac3dsp: clear the upper 32 bits for input arguments where needed Fixes checkasm on win64. Signed-off-by: James Almer --- libavcodec/x86/ac3dsp.asm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libavcodec/x86/ac3dsp.asm b/libavcodec/x86/ac3dsp.asm index 0ba980aa7b..21f59708b7 100644 --- a/libavcodec/x86/ac3dsp.asm +++ b/libavcodec/x86/ac3dsp.asm @@ -43,7 +43,7 @@ SECTION .text %macro AC3_EXPONENT_MIN 0 cglobal ac3_exponent_min, 3, 4, 2, exp, reuse_blks, expn, offset - shl reuse_blksq, 8 + shl reuse_blksd, 8 jz .end LOOP_ALIGN .nextexp: @@ -57,7 +57,7 @@ cglobal ac3_exponent_min, 3, 4, 2, exp, reuse_blks, expn, offset jae .nextblk mova [expq], m0 add expq, mmsize - sub expnq, mmsize + sub expnd, mmsize jg .nextexp .end: RET @@ -71,7 +71,7 @@ AC3_EXPONENT_MIN %undef LOOP_ALIGN ;----------------------------------------------------------------------------- -; void ff_float_to_fixed24(int32_t *dst, const float *src, unsigned int len) +; void ff_float_to_fixed24(int32_t *dst, const float *src, size_t len) ;----------------------------------------------------------------------------- INIT_XMM sse2 @@ -217,6 +217,7 @@ cglobal ac3_compute_mantissa_size, 1, 2, 4, mant_cnt, sum %macro AC3_EXTRACT_EXPONENTS 0 cglobal ac3_extract_exponents, 3, 3, 4, exp, coef, len + movsxdifnidn lenq, lend add expq, lenq lea coefq, [coefq+4*lenq] neg lenq