summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2024-04-08 13:44:05 -0300
committerJames Almer <jamrial@gmail.com>2024-04-08 13:45:58 -0300
commitb0ef9e35e80990b0ba03dd724a6d41cccba100b1 (patch)
tree3b8a69d760e162fa1d1b05832b4fb018925c91d1
parent17414abb69b44675fd9964069f948a4d48b1ec5e (diff)
x86/ac3dsp: clear the upper 32 bits for input arguments where needed
Fixes checkasm on win64. Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r--libavcodec/x86/ac3dsp.asm7
1 files 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