diff options
Diffstat (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorIntDiv.h')
-rw-r--r-- | unsupported/Eigen/CXX11/src/Tensor/TensorIntDiv.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorIntDiv.h b/unsupported/Eigen/CXX11/src/Tensor/TensorIntDiv.h index 1de6ce3b4..4c5e784c9 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorIntDiv.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorIntDiv.h @@ -75,7 +75,7 @@ struct TensorIntDivisor { eigen_assert(numerator >= 0); eigen_assert(static_cast<unsigned long long>(numerator) <= (1ull<<N) - 1); - uint32_t t1 = (multiplier * numerator) >> 32; + uint32_t t1 = (multiplier * numerator) >> N; uint32_t t = (static_cast<uint32_t>(numerator) - t1) >> shift1; return (t1 + t) >> shift2; } |