Skip to content

Commit

Permalink
fix: typo bug in shift operations in Neon vector ops
Browse files Browse the repository at this point in the history
  • Loading branch information
zkingston committed Jul 19, 2024
1 parent 60fe7bb commit e21c27b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/impl/vamp/vector/neon.hh
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ namespace vamp
template <ScalarT i>
inline static constexpr auto lshift_dispatch(VectorT v) noexcept -> VectorT
{
return vshlq_n_u32(v, i);
return vshlq_n_s32(v, i);
}

template <unsigned int = 0>
Expand All @@ -459,7 +459,7 @@ namespace vamp
template <ScalarT i>
inline static constexpr auto rshift_dispatch(VectorT v) noexcept -> VectorT
{
return vshrq_n_u32(v, i);
return vshrq_n_s32(v, i);
}

template <unsigned int = 0>
Expand Down

0 comments on commit e21c27b

Please sign in to comment.