mirror of
https://github.com/Z3Prover/z3
synced 2025-04-06 17:44:08 +00:00
parent
e24481dacd
commit
d0dac83143
|
@ -68,12 +68,17 @@ inline uint64_t _trailing_zeros64(uint64_t x) {
|
||||||
for (; 0 == (x & 1) && r < 64; ++r, x >>= 1);
|
for (; 0 == (x & 1) && r < 64; ++r, x >>= 1);
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(_WINDOWS) && !defined(_M_ARM) && !defined(_M_ARM64)
|
||||||
|
// _trailing_zeros32 already defined using intrinsics
|
||||||
|
#else
|
||||||
inline uint32_t _trailing_zeros32(uint32_t x) {
|
inline uint32_t _trailing_zeros32(uint32_t x) {
|
||||||
uint32_t r = 0;
|
uint32_t r = 0;
|
||||||
for (; 0 == (x & 1) && r < 32; ++r, x >>= 1);
|
for (; 0 == (x & 1) && r < 32; ++r, x >>= 1);
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#define _bit_min(x, y) (y + ((x - y) & ((int)(x - y) >> 31)))
|
#define _bit_min(x, y) (y + ((x - y) & ((int)(x - y) >> 31)))
|
||||||
|
|
Loading…
Reference in a new issue