mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-08 09:49:03 +08:00
TensorReduction: replace divup with div_ceil
This commit is contained in:
parent
5de0f2f89e
commit
1aac9332ce
@ -271,7 +271,7 @@ struct InnerMostDimReducer<Self, Op, true, true> {
|
||||
// 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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user