mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Consolidate multiple implementations of divup/div_up/div_ceil.
This commit is contained in:
@@ -215,7 +215,7 @@ EIGEN_STRONG_INLINE Index AdjustBlockSize(Index item_size, Index block_size) {
|
||||
EIGEN_CONSTEXPR Index kBlockAlignment = 128;
|
||||
const Index items_per_cacheline =
|
||||
numext::maxi<Index>(1, kBlockAlignment / item_size);
|
||||
return items_per_cacheline * divup(block_size, items_per_cacheline);
|
||||
return items_per_cacheline * numext::div_ceil(block_size, items_per_cacheline);
|
||||
}
|
||||
|
||||
template <typename Self>
|
||||
|
||||
Reference in New Issue
Block a user