Skip to content

Commit 126c7e5

Browse files
WIP
1 parent fdcc012 commit 126c7e5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/xsimd/arch/xsimd_neon.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1062,7 +1062,8 @@ namespace xsimd
10621062
XSIMD_INLINE batch_bool<T, A> gt(batch<T, A> const& lhs, batch<T, A> const& rhs, requires_arch<neon>) noexcept
10631063
{
10641064
using register_type = typename batch<T, A>::register_type;
1065-
return detail::bitwise_not_s64(vshrq_n_s64(vreinterpretq_s64_u64(vqsubq_u64(register_type(rhs), register_type(lhs))), 63));
1065+
register_type acc = { 0x8FFFFFFFFFFFFFFFull, 0x8FFFFFFFFFFFFFFFull };
1066+
return detail::bitwise_not_s64(vshrq_n_s64(vreinterpretq_s64_u64(vqaddq_u64(vqsubq_u64(register_type(rhs), register_type(lhs)), acc)), 63));
10661067
}
10671068

10681069
/******

0 commit comments

Comments
 (0)