diff options
author | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2015-07-07 08:52:14 -0700 |
---|---|---|
committer | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2015-07-07 08:52:14 -0700 |
commit | a93af659383002063513099ed35efa9fe177bec8 (patch) | |
tree | 57ee8c72475832328db2e93c69efa97d8e71061a /unsupported/Eigen/CXX11/src/Tensor/TensorIntDiv.h | |
parent | fa17358c4b2355cfc0fab48b4e1f5422f7fba9a7 (diff) |
Improved and cleaned up the 2d patch extraction code
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; } |