diff options
| author | Ahmad Alawneh <[email protected]> | 2023-07-06 01:18:20 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-07-06 01:18:20 -0400 |
| commit | a42b72214b92b6a97f16c180ad09631cbe50da33 (patch) | |
| tree | 61bba4462fde2ba21e00a166a952edd1087b9ca9 /src/gpgpu-sim/addrdec.cc | |
| parent | 58beccb510bb892de56b466ac764f24297affebd (diff) | |
| parent | 1ce9febc61ab0e50c01ceea424cbf3e12a149366 (diff) | |
Merge pull request #59 from LAhmos/all_warn
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) |
