You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Same trick as with to_base_le, find the largest power of base
that fits u64 and accumulate there first.
base:u64,
digits:I,) -> Result<Self,BaseConvertError> {// OPT: Special handling of bases that divide 2^64, and bases that are// powers of 2.// OPT: Same trick as with `to_base_le`, find the largest power of base// that fits `u64` and accumulate there first.if base < 2{returnErr(BaseConvertError::InvalidBase(base));}letmut result = Self::ZERO;for digit in digits {
github-actionsbot
changed the title
base_convert:Same trick as with to_base_le, find the largest power of basebase_convert: Same trick as with to_base_le, find the largest power of base
May 28, 2022
On 2022-05-28 @recmo wrote in
b0b5d54
“Mod names”:Same trick as with
to_base_le
, find the largest power of basethat fits
u64
and accumulate there first.From
src/base_convert.rs:82
The text was updated successfully, but these errors were encountered: