aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/arch/Default/Half.h
diff options
context:
space:
mode:
authorGravatar Rasmus Munk Larsen <rmlarsen@google.com>2020-12-03 14:32:45 -0800
committerGravatar Rasmus Munk Larsen <rmlarsen@google.com>2020-12-03 14:32:45 -0800
commitf23dc5b971d1c11bc0fcb7068788a30e4bd7cbf1 (patch)
treedaf4488df55322bc0840f2c75cb38f3884c4141c /Eigen/src/Core/arch/Default/Half.h
parent4d91519a9be061da5d300079fca17dd0b9328050 (diff)
Revert "Add log2() operator to Eigen"
Diffstat (limited to 'Eigen/src/Core/arch/Default/Half.h')
-rw-r--r--Eigen/src/Core/arch/Default/Half.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/Eigen/src/Core/arch/Default/Half.h b/Eigen/src/Core/arch/Default/Half.h
index db85f4edf..7029c500d 100644
--- a/Eigen/src/Core/arch/Default/Half.h
+++ b/Eigen/src/Core/arch/Default/Half.h
@@ -622,10 +622,6 @@ EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC half log1p(const half& a) {
EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC half log10(const half& a) {
return half(::log10f(float(a)));
}
-EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC half log2(const half& a) {
- return half(static_cast<float>(M_LOG2E) * ::logf(float(a)));
-}
-
EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC half sqrt(const half& a) {
#if (EIGEN_CUDA_SDK_VER >= 80000 && defined EIGEN_CUDA_ARCH && EIGEN_CUDA_ARCH >= 530) || \
defined(EIGEN_HIP_DEVICE_COMPILE)