From dc5059fb1acbf6a710c50f538b727a851c2d1139 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Mon, 3 May 2021 11:14:10 +0200 Subject: [PATCH] NEON buildfix. Inlining caused an error message that never would have any consequence. --- .../foundation/include/unix/neon/PsUnixNeonInlineAoS.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/physx/source/foundation/include/unix/neon/PsUnixNeonInlineAoS.h b/physx/source/foundation/include/unix/neon/PsUnixNeonInlineAoS.h index 962bfa7a1..23bdc640a 100644 --- a/physx/source/foundation/include/unix/neon/PsUnixNeonInlineAoS.h +++ b/physx/source/foundation/include/unix/neon/PsUnixNeonInlineAoS.h @@ -3577,9 +3577,13 @@ PX_FORCE_INLINE Vec4V V4SplatElement(Vec4V a) return vdupq_lane_f32(vget_low_f32(a), 1); } #else - if(index < 2) + if(index == 0) + { + return vdupq_lane_f32(vget_low_f32(a), 0); + } + else if(index == 1) { - return vdupq_lane_f32(vget_low_f32(a), index); + return vdupq_lane_f32(vget_low_f32(a), 1); } #endif else if(index == 2)