summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim/addrdec.cc
diff options
context:
space:
mode:
authorAaron Barnes <[email protected]>2023-08-07 12:27:43 -0400
committerGitHub <[email protected]>2023-08-07 12:27:43 -0400
commit57452f0afc9f25118ef03aa317669331feaa8571 (patch)
treec617f1a97f6549642034de7d6f3b70723bc6ba75 /src/gpgpu-sim/addrdec.cc
parent712b6104e7399b2dd42c25b4cd788f0f36b5b39d (diff)
parenta42b72214b92b6a97f16c180ad09631cbe50da33 (diff)
Merge branch 'dev' into fix-stats
Diffstat (limited to 'src/gpgpu-sim/addrdec.cc')
-rw-r--r--src/gpgpu-sim/addrdec.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpgpu-sim/addrdec.cc b/src/gpgpu-sim/addrdec.cc
index f4f83f9..db27c82 100644
--- a/src/gpgpu-sim/addrdec.cc
+++ b/src/gpgpu-sim/addrdec.cc
@@ -584,7 +584,7 @@ unsigned next_powerOf2(unsigned n) {
n = n - 1;
// do till only one bit is left
- while (n & n - 1) n = n & (n - 1); // unset rightmost bit
+ while (n & (n - 1)) n = n & (n - 1); // unset rightmost bit
// n is now a power of two (less than n)