Skip to content

Commit bd2e7af

Browse files
WIP
1 parent 51ef120 commit bd2e7af

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

include/xsimd/arch/xsimd_altivec.hpp

Lines changed: 6 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

0 commit comments

Comments
 (0)