aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/arch/CUDA
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2016-08-22 15:44:21 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2016-08-22 15:44:21 +0200
commitd937a420a227443947cb4f6dd9551b26b4fb0b57 (patch)
treee818e3037649fae556ed5dcb9baae9c778b0473f /Eigen/src/Core/arch/CUDA
parent2d5731e40a1e5c720313d19a85f4d0eae7634e72 (diff)
Fix compilation with MSVC by using our portable numext::log1p implementation.
Diffstat (limited to 'Eigen/src/Core/arch/CUDA')
-rw-r--r--Eigen/src/Core/arch/CUDA/Half.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Core/arch/CUDA/Half.h b/Eigen/src/Core/arch/CUDA/Half.h
index 4d91420d0..abe630d75 100644
--- a/Eigen/src/Core/arch/CUDA/Half.h
+++ b/Eigen/src/Core/arch/CUDA/Half.h
@@ -392,7 +392,7 @@ EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC half log(const half& a) {
return half(::logf(float(a)));
}
EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC half log1p(const half& a) {
- return half(::log1pf(float(a)));
+ return half(numext::log1p(float(a)));
}
EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC half log10(const half& a) {
return half(::log10f(float(a)));