From: DRC Date: Wed, 27 Feb 2019 19:17:35 +0000 (-0600) Subject: MMI: Fix bug in jsimd_h2v1_merged_upsample_mmi() X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=98ff5507d8ccfb7ddba2fba3fb7e3f8bed3feded;p=libjpeg-turbo MMI: Fix bug in jsimd_h2v1_merged_upsample_mmi() ... that occurred when ((image width) & 1) != 0. --- diff --git a/simd/loongson/jdmrgext-mmi.c b/simd/loongson/jdmrgext-mmi.c index 0ec6971..667269b 100644 --- a/simd/loongson/jdmrgext-mmi.c +++ b/simd/loongson/jdmrgext-mmi.c @@ -499,9 +499,9 @@ void jsimd_h2v1_merged_upsample_mmi(JDIMENSION output_width, if (!((output_width >> 1) & 7)) { if (output_width & 1) { - cb = _mm_load_si32((__m32 *)inptr1); - cr = _mm_load_si32((__m32 *)inptr2); - y = _mm_load_si32((__m32 *)inptr0); + cb = _mm_load_si64((__m64 *)inptr1); + cr = _mm_load_si64((__m64 *)inptr2); + y = _mm_load_si64((__m64 *)inptr0); decenter = 0.0; decenter = _mm_cmpeq_pi16(decenter, decenter);