Skip to content

Commit a79ed46

Browse files
WIP
1 parent 19f2cff commit a79ed46

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

include/xsimd/arch/xsimd_altivec.hpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,19 @@ namespace xsimd
314314
return vec_madd(x.data, y.data, z.data);
315315
}
316316

317+
// fms
318+
template <class A>
319+
XSIMD_INLINE batch<float, A> fms(batch<float, A> const& x, batch<float, A> const& y, batch<float, A> const& z, requires_arch<altivec>) noexcept
320+
{
321+
return vec_msub(x.data, y.data, z.data);
322+
}
323+
324+
template <class A>
325+
XSIMD_INLINE batch<double, A> fms(batch<double, A> const& x, batch<double, A> const& y, batch<double, A> const& z, requires_arch<altivec>) noexcept
326+
{
327+
return vec_msub(x.data, y.data, z.data);
328+
}
329+
317330
// eq
318331
template <class A, class T, class = typename std::enable_if<std::is_scalar<T>::value, void>::type>
319332
XSIMD_INLINE batch_bool<T, A> eq(batch<T, A> const& self, batch<T, A> const& other, requires_arch<altivec>) noexcept

0 commit comments

Comments
 (0)