Skip to content

Commit f3bde5c

Browse files
WIP
1 parent 51ef120 commit f3bde5c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

include/xsimd/arch/xsimd_altivec.hpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,12 @@ namespace xsimd
7474
return vec_abs(self.data);
7575
}
7676

77+
template <class A>
78+
XSIMD_INLINE batch<double, A> abs(batch<double, A> const& self, requires_arch<altivec>) noexcept
79+
{
80+
return vec_abs(self.data);
81+
}
82+
7783
// add
7884
template <class A, class T, class = typename std::enable_if<std::is_scalar<T>::value, void>::type>
7985
XSIMD_INLINE batch<T, A> add(batch<T, A> const& self, batch<T, A> const& other, requires_arch<altivec>) noexcept
@@ -695,6 +701,11 @@ namespace xsimd
695701
{
696702
return vec_rsqrt(val.data);
697703
}
704+
template <class A>
705+
XSIMD_INLINE batch<double, A> rsqrt(batch<double, A> const& val, requires_arch<altivec>) noexcept
706+
{
707+
return vec_rsqrt(val.data);
708+
}
698709

699710
// select
700711
template <class A, class T, class = typename std::enable_if<std::is_scalar<T>::value, void>::type>

0 commit comments

Comments
 (0)