From e21c27b21a85318e574155fef7b2b9c525ac1261 Mon Sep 17 00:00:00 2001 From: Zachary Kingston Date: Fri, 19 Jul 2024 10:51:44 -0500 Subject: [PATCH] fix: typo bug in shift operations in Neon vector ops --- src/impl/vamp/vector/neon.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/impl/vamp/vector/neon.hh b/src/impl/vamp/vector/neon.hh index 52b55243..01411fa1 100644 --- a/src/impl/vamp/vector/neon.hh +++ b/src/impl/vamp/vector/neon.hh @@ -435,7 +435,7 @@ namespace vamp template inline static constexpr auto lshift_dispatch(VectorT v) noexcept -> VectorT { - return vshlq_n_u32(v, i); + return vshlq_n_s32(v, i); } template @@ -459,7 +459,7 @@ namespace vamp template inline static constexpr auto rshift_dispatch(VectorT v) noexcept -> VectorT { - return vshrq_n_u32(v, i); + return vshrq_n_s32(v, i); } template