@@ -312,7 +312,7 @@ impl<const LIMBS: usize> Xgcd for OddInt<LIMBS> {
312312#[ cfg( all( test, not( miri) ) ) ]
313313mod tests {
314314 use crate :: int:: gcd:: { IntXgcdOutput , NonZeroIntXgcdOutput , OddIntXgcdOutput } ;
315- use crate :: { ConcatenatingMul , Gcd , Int , Uint } ;
315+ use crate :: { ConcatMixed , Gcd , Int , Uint } ;
316316 use num_traits:: Zero ;
317317
318318 impl < const LIMBS : usize > From < NonZeroIntXgcdOutput < LIMBS > > for IntXgcdOutput < LIMBS > {
@@ -409,7 +409,7 @@ mod tests {
409409 rhs : Int < LIMBS > ,
410410 output : IntXgcdOutput < LIMBS > ,
411411 ) where
412- Uint < LIMBS > : ConcatenatingMul < Uint < DOUBLE > > ,
412+ Uint < LIMBS > : ConcatMixed < Uint < LIMBS > , MixedOutput = Uint < DOUBLE > > ,
413413 {
414414 let gcd = lhs. gcd ( & rhs) ;
415415 assert_eq ! ( gcd, output. gcd) ;
@@ -437,28 +437,28 @@ mod tests {
437437 assert_eq ! (
438438 x. concatenating_mul( & lhs)
439439 . wrapping_add( & y. concatenating_mul( & rhs) ) ,
440- * gcd. resize:: < DOUBLE > ( ) . as_int( )
440+ * gcd. resize( ) . as_int( )
441441 ) ;
442442 }
443443
444444 mod test_int_xgcd {
445445 use crate :: int:: gcd:: tests:: xgcd_test;
446446 use crate :: {
447- ConcatenatingMul , Gcd , Int , U64 , U128 , U192 , U256 , U384 , U512 , U768 , U1024 , U2048 ,
448- U4096 , U8192 , Uint ,
447+ ConcatMixed , Gcd , Int , U64 , U128 , U192 , U256 , U384 , U512 , U768 , U1024 , U2048 , U4096 ,
448+ U8192 , Uint ,
449449 } ;
450450
451451 fn test < const LIMBS : usize , const DOUBLE : usize > ( lhs : Int < LIMBS > , rhs : Int < LIMBS > )
452452 where
453- Uint < LIMBS > : ConcatenatingMul < Uint < DOUBLE > > ,
453+ Uint < LIMBS > : ConcatMixed < Uint < LIMBS > , MixedOutput = Uint < DOUBLE > > ,
454454 Int < LIMBS > : Gcd < Output = Uint < LIMBS > > ,
455455 {
456456 xgcd_test ( lhs, rhs, lhs. xgcd ( & rhs) )
457457 }
458458
459459 fn run_tests < const LIMBS : usize , const DOUBLE : usize > ( )
460460 where
461- Uint < LIMBS > : ConcatenatingMul < Uint < DOUBLE > > ,
461+ Uint < LIMBS > : ConcatMixed < Uint < LIMBS > , MixedOutput = Uint < DOUBLE > > ,
462462 Int < LIMBS > : Gcd < Output = Uint < LIMBS > > ,
463463 {
464464 test ( Int :: MIN , Int :: MIN ) ;
@@ -505,21 +505,21 @@ mod tests {
505505 mod test_nonzero_int_xgcd {
506506 use crate :: int:: gcd:: tests:: xgcd_test;
507507 use crate :: {
508- ConcatenatingMul , Int , U64 , U128 , U192 , U256 , U384 , U512 , U768 , U1024 , U2048 , U4096 ,
509- U8192 , Uint ,
508+ ConcatMixed , Int , U64 , U128 , U192 , U256 , U384 , U512 , U768 , U1024 , U2048 , U4096 , U8192 ,
509+ Uint ,
510510 } ;
511511
512512 fn test < const LIMBS : usize , const DOUBLE : usize > ( lhs : Int < LIMBS > , rhs : Int < LIMBS > )
513513 where
514- Uint < LIMBS > : ConcatenatingMul < Uint < DOUBLE > > ,
514+ Uint < LIMBS > : ConcatMixed < Uint < LIMBS > , MixedOutput = Uint < DOUBLE > > ,
515515 {
516516 let output = lhs. to_nz ( ) . unwrap ( ) . xgcd ( & rhs. to_nz ( ) . unwrap ( ) ) ;
517517 xgcd_test ( lhs, rhs, output. into ( ) ) ;
518518 }
519519
520520 fn run_tests < const LIMBS : usize , const DOUBLE : usize > ( )
521521 where
522- Uint < LIMBS > : ConcatenatingMul < Uint < DOUBLE > > ,
522+ Uint < LIMBS > : ConcatMixed < Uint < LIMBS > , MixedOutput = Uint < DOUBLE > > ,
523523 {
524524 test ( Int :: MIN , Int :: MIN ) ;
525525 test ( Int :: MIN , Int :: MINUS_ONE ) ;
@@ -556,21 +556,21 @@ mod tests {
556556 mod test_odd_int_xgcd {
557557 use crate :: int:: gcd:: tests:: xgcd_test;
558558 use crate :: {
559- ConcatenatingMul , Int , U64 , U128 , U192 , U256 , U384 , U512 , U768 , U1024 , U2048 , U4096 ,
560- U8192 , Uint ,
559+ ConcatMixed , Int , U64 , U128 , U192 , U256 , U384 , U512 , U768 , U1024 , U2048 , U4096 , U8192 ,
560+ Uint ,
561561 } ;
562562
563563 fn test < const LIMBS : usize , const DOUBLE : usize > ( lhs : Int < LIMBS > , rhs : Int < LIMBS > )
564564 where
565- Uint < LIMBS > : ConcatenatingMul < Uint < DOUBLE > > ,
565+ Uint < LIMBS > : ConcatMixed < Uint < LIMBS > , MixedOutput = Uint < DOUBLE > > ,
566566 {
567567 let output = lhs. to_odd ( ) . unwrap ( ) . xgcd ( & rhs. to_nz ( ) . unwrap ( ) ) ;
568568 xgcd_test ( lhs, rhs, output. into ( ) ) ;
569569 }
570570
571571 fn run_tests < const LIMBS : usize , const DOUBLE : usize > ( )
572572 where
573- Uint < LIMBS > : ConcatenatingMul < Uint < DOUBLE > > ,
573+ Uint < LIMBS > : ConcatMixed < Uint < LIMBS > , MixedOutput = Uint < DOUBLE > > ,
574574 {
575575 let neg_max = Int :: MAX . wrapping_neg ( ) ;
576576 test ( neg_max, neg_max) ;
0 commit comments