Skip to content

Commit 9a9a8ea

Browse files
yuygfggsekrit-twc
authored andcommitted
fix float32 UV become neutral with arm neon
1 parent 81042fc commit 9a9a8ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/zimg/resize/arm/resize_impl_neon.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,8 @@ inline FORCE_INLINE float32x4_t resize_line4_h_f32_neon_xiter(unsigned j, const
218218
{
219219
float32x4_t &acc = kk % 2 ? accum1 : accum0;
220220

221-
float32x4_t c = vdupq_laneq_f32(coeffs, 0);
222-
float32x4_t x = vld1q_f32(src_p + 0);
221+
float32x4_t c = vdupq_laneq_f32(coeffs, static_cast<int>(kk));
222+
float32x4_t x = vld1q_f32(src_p + 4 * static_cast<int>(kk));
223223
acc = vfmaq_f32(acc, c, x);
224224
};
225225

0 commit comments

Comments
 (0)