aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/arch/AltiVec/MathFunctions.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2018-11-30 16:21:33 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2018-11-30 16:21:33 +0100
commitc785464430bfc697debe3f8d49e49064aa08e0a3 (patch)
treea1954d2716532cb9916d0a0b195ba353f20a89b5 /Eigen/src/Core/arch/AltiVec/MathFunctions.h
parent69ace742be6f00f4280d312e046b0b1422fd112c (diff)
Add packet sin and cos to Altivec/VSX and NEON
Diffstat (limited to 'Eigen/src/Core/arch/AltiVec/MathFunctions.h')
-rw-r--r--Eigen/src/Core/arch/AltiVec/MathFunctions.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/Eigen/src/Core/arch/AltiVec/MathFunctions.h b/Eigen/src/Core/arch/AltiVec/MathFunctions.h
index acf665018..81097e668 100644
--- a/Eigen/src/Core/arch/AltiVec/MathFunctions.h
+++ b/Eigen/src/Core/arch/AltiVec/MathFunctions.h
@@ -30,6 +30,18 @@ Packet4f pexp<Packet4f>(const Packet4f& _x)
return pexp_float(_x);
}
+template<> EIGEN_DEFINE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS EIGEN_UNUSED
+Packet4f psin<Packet4f>(const Packet4f& _x)
+{
+ return psin_float(_x);
+}
+
+template<> EIGEN_DEFINE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS EIGEN_UNUSED
+Packet4f pcos<Packet4f>(const Packet4f& _x)
+{
+ return pcos_float(_x);
+}
+
#ifndef EIGEN_COMP_CLANG
template<> EIGEN_DEFINE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS EIGEN_UNUSED
Packet4f prsqrt<Packet4f>(const Packet4f& x)