Skip to content

Commit 62b9257

Browse files
WIP
1 parent 1c23195 commit 62b9257

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/xsimd/arch/xsimd_altivec.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ namespace xsimd
108108
{
109109
constexpr auto nbit = 8 * sizeof(T) - 1;
110110
auto adj = ((self ^ other) << nbit) >> nbit;
111-
return avgr(self.data, other.data, A {}) - adj;
111+
return avgr(self, other, A {}) - adj;
112112
}
113113

114114
// batch_bool_cast
@@ -782,7 +782,7 @@ namespace xsimd
782782
}
783783

784784
// sadd
785-
template <class A, class T, class = typename std::enable_if<std::is_scalar<T>::value, void>::type>
785+
template <class A, class T, class = typename std::enable_if<std::is_integral<T>::value, void>::type>
786786
XSIMD_INLINE batch<T, A> sadd(batch<T, A> const& self, batch<T, A> const& other, requires_arch<altivec>) noexcept
787787
{
788788
return vec_adds(self.data, other.data);

0 commit comments

Comments
 (0)