Skip to content

Commit 93eebbe

Browse files
WIP
1 parent 8c7d552 commit 93eebbe

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

include/xsimd/arch/xsimd_altivec.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ namespace xsimd
252252
template <class A, class T, class = typename std::enable_if<std::is_integral<T>::value, void>::type>
253253
XSIMD_INLINE batch<T, A> div(batch<T, A> const& self, batch<T, A> const& other, requires_arch<altivec>) noexcept
254254
{
255-
return vec_div(self.data, other.data);
255+
return vec_mul(self.data, vec_re(other.data));
256256
}
257257

258258
// fast_cast

include/xsimd/types/xsimd_altivec_register.hpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ namespace xsimd
4646
XSIMD_DECLARE_SIMD_REGISTER(unsigned int, altivec, __vector unsigned int);
4747
XSIMD_DECLARE_SIMD_REGISTER(int, altivec, __vector int);
4848
XSIMD_DECLARE_SIMD_REGISTER(float, altivec, __vector float);
49+
50+
template <class T>
51+
struct get_bool_simd_register<T, altivec>
52+
{
53+
using type = __vector __bool T;
54+
};
4955
}
5056
#endif
5157
}

0 commit comments

Comments
 (0)