]> granicus.if.org Git - libjpeg-turbo/commitdiff
MMI: Fix bug in jsimd_h2v1_merged_upsample_mmi()
authorDRC <information@virtualgl.org>
Wed, 27 Feb 2019 19:17:35 +0000 (13:17 -0600)
committerDRC <information@libjpeg-turbo.org>
Wed, 27 Feb 2019 19:36:48 +0000 (13:36 -0600)
... that occurred when ((image width) & 1) != 0.

simd/loongson/jdmrgext-mmi.c

index 0ec69717ae84eebf19059158a53980e1d7bd96f9..667269be17151e6a6e4d10629dcfab48d02dc9f9 100644 (file)
@@ -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);