I believe this can be done with `BigDigit::bits - top_digit.leading_zeros()`; `leading_zeros` comes from [`std::num::BitCount`](https://github.com/mozilla/rust/blob/master/src/libstd/num/num.rs#L263) if you need to import it.