diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorReduction.h b/unsupported/Eigen/CXX11/src/Tensor/TensorReduction.h index c1ad675d7..062a56b1b 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorReduction.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorReduction.h @@ -271,7 +271,7 @@ struct InnerMostDimReducer { // Make sure the split point is aligned on a packet boundary. const typename Self::Index split = packetSize * - divup(firstIndex + divup(numValuesToReduce, typename Self::Index(2)), + numext::div_ceil(firstIndex + numext::div_ceil(numValuesToReduce, typename Self::Index(2)), packetSize); const typename Self::Index num_left = numext::mini(split - firstIndex, numValuesToReduce);