summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim/addrdec.cc
diff options
context:
space:
mode:
authorJRPan <[email protected]>2024-01-10 14:13:08 +0800
committerGitHub <[email protected]>2024-01-10 14:13:08 +0800
commit2ef277b65a7e5b79808e6ccfc62fc71644159394 (patch)
tree7f84bdab6391043e92d761d5cd79a407fb610cae /src/gpgpu-sim/addrdec.cc
parent95822cbf2c6f8f7a15d5b1bc3bf0eb5250f8d36e (diff)
parenta0c12f5d63504c67c8bdfb1a6cc689b4ab7867a6 (diff)
Merge branch 'dev' into dev
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)