mirror of
https://github.com/Z3Prover/z3
synced 2025-07-26 06:07:01 +00:00
fixplex
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
4da1b7b03c
commit
831edba1c8
7 changed files with 26 additions and 1 deletions
|
@ -84,6 +84,13 @@ inline uint32_t _trailing_zeros32(uint32_t x) {
|
|||
#endif
|
||||
#endif
|
||||
|
||||
unsigned trailing_zeros(uint32_t x) {
|
||||
return static_cast<unsigned>(_trailing_zeros32(x));
|
||||
}
|
||||
|
||||
unsigned trailing_zeros(uint64_t x) {
|
||||
return static_cast<unsigned>(_trailing_zeros64(x));
|
||||
}
|
||||
|
||||
#define _bit_min(x, y) (y + ((x - y) & ((int)(x - y) >> 31)))
|
||||
#define _bit_max(x, y) (x - ((x - y) & ((int)(x - y) >> 31)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue