aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported/Eigen/CXX11/src/Tensor/TensorIntDiv.h
diff options
context:
space:
mode:
authorGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2016-02-08 21:03:59 -0800
committerGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2016-02-08 21:03:59 -0800
commitd69946183d021c42c2670c61c3131d208f1221f4 (patch)
tree1bc0f477df2f909893f2d862315c663439c0748d /unsupported/Eigen/CXX11/src/Tensor/TensorIntDiv.h
parent24d291cf164591c16cc6a6b60ec38551144cc43c (diff)
Updated the TensorIntDivisor code to work properly on LLP64 systems
Diffstat (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorIntDiv.h')
-rw-r--r--unsupported/Eigen/CXX11/src/Tensor/TensorIntDiv.h3
1 files changed, 2 insertions, 1 deletions
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<uint64_t>(val)) :
+ __builtin_clzll(static_cast<uint64_t>(val)) :
__builtin_clz(static_cast<uint32_t>(val));
#endif
}