From a93af659383002063513099ed35efa9fe177bec8 Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Tue, 7 Jul 2015 08:52:14 -0700 Subject: Improved and cleaned up the 2d patch extraction code --- unsupported/Eigen/CXX11/src/Tensor/TensorIntDiv.h | 2 +- 1 file changed, 1 insertion(+), 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 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(numerator) <= (1ull<> 32; + uint32_t t1 = (multiplier * numerator) >> N; uint32_t t = (static_cast(numerator) - t1) >> shift1; return (t1 + t) >> shift2; } -- cgit v1.2.3