aco/util: replace DIV_ROUND_UP(n+1,m) by n/m+1

Reviewed-by: Tony Wasserka <tony.wasserka@gmx.de>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11271>
This commit is contained in:
Daniel Schürmann
2021-06-09 15:35:08 +02:00
committed by Marge Bot
parent cf05a7e66f
commit 452c4c8ba1

View File

@@ -283,7 +283,7 @@ struct IDSet {
std::pair<Iterator, bool> insert(uint32_t id) {
if (words.size() * 64u <= id)
words.resize(DIV_ROUND_UP(id + 1, 64u));
words.resize(id / 64u + 1);
Iterator it;
it.set = this;