From d69946183d021c42c2670c61c3131d208f1221f4 Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Mon, 8 Feb 2016 21:03:59 -0800 Subject: Updated the TensorIntDivisor code to work properly on LLP64 systems --- unsupported/Eigen/CXX11/src/Tensor/TensorIntDiv.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorIntDiv.h') diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorIntDiv.h b/unsupported/Eigen/CXX11/src/Tensor/TensorIntDiv.h index b58173e58..ae0de9420 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorIntDiv.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorIntDiv.h @@ -45,8 +45,9 @@ namespace { } return leading_zeros; #else + EIGEN_STATIC_ASSERT(sizeof(unsigned long long) == 8, YOU_MADE_A_PROGRAMMING_MISTAKE); return (sizeof(T) == 8) ? - __builtin_clzl(static_cast(val)) : + __builtin_clzll(static_cast(val)) : __builtin_clz(static_cast(val)); #endif } -- cgit v1.2.3