vm: speed up bignum log2.