diff options
| author | Ahmad Alawneh <[email protected]> | 2023-06-20 14:42:00 -0400 |
|---|---|---|
| committer | Ahmad Alawneh <[email protected]> | 2023-06-20 14:42:00 -0400 |
| commit | 68a91076b2aab8f60bae551d6df6b3a8aa411463 (patch) | |
| tree | d380fa98c220285ef4f3fc5b152ba1d314f04fdb /src/gpgpu-sim/addrdec.cc | |
| parent | 24a35fbd683606efabae8d60a3283dc2bd2a66b0 (diff) | |
fix most c warnings
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) |
