diff options
| author | Aaron Barnes <[email protected]> | 2023-08-07 12:27:43 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-08-07 12:27:43 -0400 |
| commit | 57452f0afc9f25118ef03aa317669331feaa8571 (patch) | |
| tree | c617f1a97f6549642034de7d6f3b70723bc6ba75 /src/gpgpu-sim/addrdec.cc | |
| parent | 712b6104e7399b2dd42c25b4cd788f0f36b5b39d (diff) | |
| parent | a42b72214b92b6a97f16c180ad09631cbe50da33 (diff) | |
Merge branch 'dev' into fix-stats
Diffstat (limited to 'src/gpgpu-sim/addrdec.cc')
| -rw-r--r-- | src/gpgpu-sim/addrdec.cc | 2 |
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) |
