From f23dc5b971d1c11bc0fcb7068788a30e4bd7cbf1 Mon Sep 17 00:00:00 2001 From: Rasmus Munk Larsen Date: Thu, 3 Dec 2020 14:32:45 -0800 Subject: Revert "Add log2() operator to Eigen" This reverts commit 4d91519a9be061da5d300079fca17dd0b9328050. --- Eigen/src/Core/arch/AVX512/MathFunctions.h | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'Eigen/src/Core/arch/AVX512') diff --git a/Eigen/src/Core/arch/AVX512/MathFunctions.h b/Eigen/src/Core/arch/AVX512/MathFunctions.h index 66f3252cd..c04da6795 100644 --- a/Eigen/src/Core/arch/AVX512/MathFunctions.h +++ b/Eigen/src/Core/arch/AVX512/MathFunctions.h @@ -50,21 +50,6 @@ plog(const Packet8d& _x) { F16_PACKET_FUNCTION(Packet16f, Packet16h, plog) BF16_PACKET_FUNCTION(Packet16f, Packet16bf, plog) -template <> -EIGEN_DEFINE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS EIGEN_UNUSED Packet16f -plog2(const Packet16f& _x) { - return plog2_float(_x); -} - -template <> -EIGEN_DEFINE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS EIGEN_UNUSED Packet8d -plog2(const Packet8d& _x) { - return plog2_double(_x); -} - -F16_PACKET_FUNCTION(Packet16f, Packet16h, plog2) -BF16_PACKET_FUNCTION(Packet16f, Packet16bf, plog2) - // Exponential function. Works by writing "x = m*log(2) + r" where // "m = floor(x/log(2)+1/2)" and "r" is the remainder. The result is then // "exp(x) = 2^m*exp(r)" where exp(r) is in the range [-1,1). -- cgit v1.2.3