rust/library/core
Christopher Swenson 424f38f211 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-10 14:18:28 -08:00
..
benches Auto merge of #88788 - falk-hueffner:speedup-int-log10-branchless, r=joshtriplett 2021-10-12 03:18:54 +00:00
primitive_docs Add primitive documentation to libcore 2021-09-12 02:23:08 +00:00
src Simplification of BigNum::bit_length 2022-01-10 14:18:28 -08:00
tests Simplification of BigNum::bit_length 2022-01-10 14:18:28 -08:00
Cargo.toml Switch all libraries to the 2021 edition 2021-12-23 19:03:47 +08:00