mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-10-24 02:09:03 +03:00
S16 saturating sum must be computed dot-product-first. The Altivec code added the offset to the first product before adding the second product, so an intermediate saturation could corrupt the result even when the true sum fits. Swap the two vec_adds to form the dot product first. This fixes bi-weight checkasm test for PPC. Signed-off-by: Zuxy Meng <zuxy.meng@gmail.com>