1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

x86/lpc: fix odd scalar loop overreads/writes

This commit is contained in:
Lynne 2022-09-22 03:06:00 +02:00
parent ce16d18307
commit dea944b838
No known key found for this signature in database
GPG Key ID: A2FEA5F03F034464

View File

@ -107,7 +107,6 @@ cglobal lpc_apply_welch_window, 3, 5, 8, data, len, out, off1, off2
.scalar_o:
movapd xm7, [dec_tab_scalar]
subpd xm0, xm7
; Set offsets
add off2q, (mmsize/4) + 4*cpuflag(avx2)
@ -118,14 +117,14 @@ cglobal lpc_apply_welch_window, 3, 5, 8, data, len, out, off1, off2
mulpd xm2, xm0, xm0
subpd xm1, xm2
cvtdq2pd xm3, [dataq + off1q - (mmsize/4) + 4*cpuflag(avx2)]
cvtdq2pd xm4, [dataq + off2q - (mmsize/4) + 4*cpuflag(avx2)]
cvtdq2pd xm3, [dataq + off1q]
cvtdq2pd xm4, [dataq + off2q]
mulpd xm3, xm1
mulpd xm4, xm1
movhpd [outq + off1q*2], xm3
movhpd [outq + off2q*2], xm4
movlpd [outq + off1q*2], xm3
movlpd [outq + off2q*2], xm4
addpd xm0, xm7