3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-05 14:55:45 +00:00

Merge branch 'unstable' of https://git01.codeplex.com/z3 into unstable

This commit is contained in:
Leonardo de Moura 2013-03-25 15:43:04 -07:00
commit 7e9715f3e6

View file

@ -37,7 +37,8 @@ class bit_vector {
} }
static unsigned num_words(unsigned num_bits) { static unsigned num_words(unsigned num_bits) {
return (num_bits % 32) == 0 ? (num_bits / 32) : ((num_bits / 32) + 1); // return (num_bits % 32) == 0 ? (num_bits / 32) : ((num_bits / 32) + 1);
return (num_bits + 31) / 32;
} }
void expand_to(unsigned new_capacity); void expand_to(unsigned new_capacity);