diff options
author | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2016-02-08 21:03:59 -0800 |
---|---|---|
committer | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2016-02-08 21:03:59 -0800 |
commit | d69946183d021c42c2670c61c3131d208f1221f4 (patch) | |
tree | 1bc0f477df2f909893f2d862315c663439c0748d /unsupported/Eigen | |
parent | 24d291cf164591c16cc6a6b60ec38551144cc43c (diff) |
Updated the TensorIntDivisor code to work properly on LLP64 systems
Diffstat (limited to 'unsupported/Eigen')
-rw-r--r-- | unsupported/Eigen/CXX11/src/Tensor/TensorIntDiv.h | 3 |
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 } |