rust/library/core
Matthias Krüger f511360fd2
Rollup merge of #92747 - swenson:bignum-bit-length-optimization, r=scottmcm
Simplification of BigNum::bit_length

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.
2022-01-15 11:28:22 +01:00
..
benches
primitive_docs
src Rollup merge of #92747 - swenson:bignum-bit-length-optimization, r=scottmcm 2022-01-15 11:28:22 +01:00
tests Rollup merge of #92747 - swenson:bignum-bit-length-optimization, r=scottmcm 2022-01-15 11:28:22 +01:00
Cargo.toml Switch all libraries to the 2021 edition 2021-12-23 19:03:47 +08:00