From 452c4c8ba1de89707b0ded466b9188eff2c80c73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Sch=C3=BCrmann?= Date: Wed, 9 Jun 2021 15:35:08 +0200 Subject: [PATCH] aco/util: replace DIV_ROUND_UP(n+1,m) by n/m+1 Reviewed-by: Tony Wasserka Part-of: --- src/amd/compiler/aco_util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/compiler/aco_util.h b/src/amd/compiler/aco_util.h index a4eb7aed2a2..af4addd5f72 100644 --- a/src/amd/compiler/aco_util.h +++ b/src/amd/compiler/aco_util.h @@ -283,7 +283,7 @@ struct IDSet { std::pair 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;