diff options
| author | MZuenni <michi.zuendorf@gmail.com> | 2023-02-14 16:53:47 +0100 |
|---|---|---|
| committer | MZuenni <michi.zuendorf@gmail.com> | 2023-02-14 16:53:47 +0100 |
| commit | 9a6aeb3f3fa1c5442ef99118b3b93ae47b2c43c4 (patch) | |
| tree | 1e2d44aed87ef2197f85503ac71ca3fd9776980b /other/bitOps.cpp | |
| parent | eb4bc75111da45a17604fdff2f9eed0977f93dff (diff) | |
moved even more
Diffstat (limited to 'other/bitOps.cpp')
| -rw-r--r-- | other/bitOps.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/other/bitOps.cpp b/other/bitOps.cpp index d1ace9a..98fc994 100644 --- a/other/bitOps.cpp +++ b/other/bitOps.cpp @@ -14,5 +14,5 @@ int numberOfSetBits(int i) { // (z.B. 00111 => 01011 => 01101 => ...) ll nextPerm(ll v) { ll t = v | (v - 1); - return (t + 1) | (((~t & -~t) - 1) >> (__builtin_ctzll(v) + 1)); + return (t+1) | (((~t & -~t) - 1) >> (__builtin_ctzll(v) + 1)); } |
