File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -2481,9 +2481,8 @@ macro_rules! int_impl {
2481
2481
2482
2482
// Optimization for 128 bit wide integers.
2483
2483
if Self :: BITS == 128 {
2484
- let b = Self :: ilog2( self ) / ( Self :: ilog2( base) + 1 ) ;
2485
- n += b;
2486
- r *= base. pow( b) ;
2484
+ n = self . ilog2( ) / ( base. ilog2( ) + 1 ) ;
2485
+ r = base. pow( n) ;
2487
2486
}
2488
2487
2489
2488
while r <= self / base {
Original file line number Diff line number Diff line change @@ -814,9 +814,8 @@ macro_rules! uint_impl {
814
814
815
815
// Optimization for 128 bit wide integers.
816
816
if Self :: BITS == 128 {
817
- let b = Self :: ilog2( self ) / ( Self :: ilog2( base) + 1 ) ;
818
- n += b;
819
- r *= base. pow( b) ;
817
+ n = self . ilog2( ) / ( base. ilog2( ) + 1 ) ;
818
+ r = base. pow( n) ;
820
819
}
821
820
822
821
while r <= self / base {
You can’t perform that action at this time.
0 commit comments