diff options
| author | JRPan <[email protected]> | 2024-01-10 14:13:08 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-01-10 14:13:08 +0800 |
| commit | 2ef277b65a7e5b79808e6ccfc62fc71644159394 (patch) | |
| tree | 7f84bdab6391043e92d761d5cd79a407fb610cae /src/gpgpu-sim/addrdec.cc | |
| parent | 95822cbf2c6f8f7a15d5b1bc3bf0eb5250f8d36e (diff) | |
| parent | a0c12f5d63504c67c8bdfb1a6cc689b4ab7867a6 (diff) | |
Merge branch 'dev' into dev
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) |
