Skip to content

Commit db19123

Browse files
WIP
1 parent 37988e7 commit db19123

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/xsimd/arch/xsimd_altivec.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,14 @@ namespace xsimd
8585
template <class A, class T, class = typename std::enable_if<std::is_scalar<T>::value, void>::type>
8686
XSIMD_INLINE bool all(batch_bool<T, A> const& self, requires_arch<altivec>) noexcept
8787
{
88-
return vec_all_ne(self, vec_xor(self, self));
88+
return vec_all_ne(self, vec_xor(self.data, self.data));
8989
}
9090

9191
// any
9292
template <class A, class T, class = typename std::enable_if<std::is_scalar<T>::value, void>::type>
9393
XSIMD_INLINE bool any(batch_bool<T, A> const& self, requires_arch<altivec>) noexcept
9494
{
95-
return vec_any_ne(self, vec_xor(self, self));
95+
return vec_any_ne(self, vec_xor(self.data, self.data));
9696
}
9797

9898
// avgr
@@ -250,7 +250,7 @@ namespace xsimd
250250

251251
// div
252252
template <class A, class T, class = typename std::enable_if<std::is_integral<T>::value, void>::type>
253-
XSIMD_INLINE batch<float, A> div(batch<T, A> const& self, batch<T, A> const& other, requires_arch<altivec>) noexcept
253+
XSIMD_INLINE batch<T, A> div(batch<T, A> const& self, batch<T, A> const& other, requires_arch<altivec>) noexcept
254254
{
255255
return vec_div(self, other);
256256
}
@@ -740,7 +740,7 @@ namespace xsimd
740740
template <class A, class T, class = typename std::enable_if<std::is_scalar<T>::value, void>::type>
741741
XSIMD_INLINE batch<T, A> select(batch_bool<T, A> const& cond, batch<T, A> const& true_br, batch<T, A> const& false_br, requires_arch<altivec>) noexcept
742742
{
743-
return vec_sel(true_br, false_br, cond);
743+
return vec_sel(true_br.data, false_br.data, cond.data);
744744
}
745745
template <class A, class T, bool... Values, class = typename std::enable_if<std::is_scalar<T>::value, void>::type>
746746
XSIMD_INLINE batch<T, A> select(batch_bool_constant<T, A, Values...> const&, batch<T, A> const& true_br, batch<T, A> const& false_br, requires_arch<altivec>) noexcept

0 commit comments

Comments
 (0)