mirror of
https://github.com/Z3Prover/z3
synced 2025-06-27 08:28:44 +00:00
Update util.h (#7169)
This commit is contained in:
parent
b8a69987c3
commit
18365907a2
1 changed files with 1 additions and 0 deletions
|
@ -142,6 +142,7 @@ static inline unsigned get_num_1bits(uint64_t v) {
|
||||||
v = (v + (v >> 4)) & 0x0F0F0F0F0F0F0F0F;
|
v = (v + (v >> 4)) & 0x0F0F0F0F0F0F0F0F;
|
||||||
uint64_t r = (v * 0x0101010101010101) >> 56;
|
uint64_t r = (v * 0x0101010101010101) >> 56;
|
||||||
SASSERT(c == r);
|
SASSERT(c == r);
|
||||||
|
return r;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue