mirror of
https://github.com/Z3Prover/z3
synced 2026-03-07 22:04:53 +00:00
fix
This commit is contained in:
parent
ac748d973c
commit
1a189ebdd7
1 changed files with 1 additions and 0 deletions
|
|
@ -103,6 +103,7 @@ static inline unsigned next_power_of_two(unsigned v) {
|
|||
/**
|
||||
\brief Return the position of the most significant bit.
|
||||
*/
|
||||
static inline unsigned log2(int v) { return std::bit_width((unsigned)v) - 1; }
|
||||
static inline unsigned log2(unsigned v) { return std::bit_width(v) - 1; }
|
||||
static inline unsigned log2(uint64_t v) { return std::bit_width(v) - 1; }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue