mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-25 13:27:08 +00:00
As indicated in the comment, the BigNum::bit_length function could be optimized by using CLZ, which is often a single instruction instead a loop. I think the code is also simpler now without the loop. I added some additional tests for Big8x3 and Big32x40 to ensure that there were no regressions.