about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-07-23 19:06:29 +0200
committerbptato <nincsnevem662@gmail.com>2024-07-23 19:06:29 +0200
commitba8ec92e2cf19e8e2b4c8d4d573e357798a1bcae (patch)
tree33e8f3048644c58a8a617f7591495336b98b38b6
parentf6662b22db1d8d9d00cd182c687cffff1aba65da (diff)
downloadchawan-ba8ec92e2cf19e8e2b4c8d4d573e357798a1bcae.tar.gz
jebp: fix NEON simd bug
SRCtype and DSTtype were mixed up.

See https://todo.sr.ht/~bptato/chawan/14
-rw-r--r--adapter/img/jebp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/adapter/img/jebp.h b/adapter/img/jebp.h
index 1e57f5b1..77d6b1a1 100644
--- a/adapter/img/jebp.h
+++ b/adapter/img/jebp.h
@@ -2165,7 +2165,7 @@ static void jebp__sum_pred_dct(jebp_ubyte *pred, jebp_int stride,
         uint16x8_t v_pred16 =
             vaddw_u8(v_dct.val[y / 2], vreinterpret_u8_u32(v_pred32));
         uint8x8_t v_pred8 = vqmovun_s16(vreinterpretq_s16_u16(v_pred16));
-        v_pred32 = vreinterpret_u8_u32(v_pred8);
+        v_pred32 = vreinterpret_u32_u8(v_pred8);
         vst1_lane_u32(rowlo, v_pred32, 0);
         vst1_lane_u32(rowhi, v_pred32, 1);
     }