Lines Matching refs:from_slice
199 nums.push(BigInt::from_slice(Minus, *s)); in test_cmp()
202 nums.extend(vs.iter().map(|s| BigInt::from_slice(Plus, *s))); in test_cmp()
389 check(&BigInt::from_slice(Plus, &[0, 0, 1]), pow(2.0_f32, 64)); in test_convert_f32()
487 check(&BigInt::from_slice(Plus, &[0, 0, 1]), pow(2.0_f64, 64)); in test_convert_f64()
588 check!(u8, BigInt::from_slice(Plus, &[u8::MAX as u32])); in test_convert_from_uint()
589 check!(u16, BigInt::from_slice(Plus, &[u16::MAX as u32])); in test_convert_from_uint()
590 check!(u32, BigInt::from_slice(Plus, &[u32::MAX])); in test_convert_from_uint()
591 check!(u64, BigInt::from_slice(Plus, &[u32::MAX, u32::MAX])); in test_convert_from_uint()
594 BigInt::from_slice(Plus, &[u32::MAX, u32::MAX, u32::MAX, u32::MAX]) in test_convert_from_uint()
615 BigInt::from_slice(Minus, &[1 << 7]), in test_convert_from_int()
616 BigInt::from_slice(Plus, &[i8::MAX as u32]) in test_convert_from_int()
620 BigInt::from_slice(Minus, &[1 << 15]), in test_convert_from_int()
621 BigInt::from_slice(Plus, &[i16::MAX as u32]) in test_convert_from_int()
625 BigInt::from_slice(Minus, &[1 << 31]), in test_convert_from_int()
626 BigInt::from_slice(Plus, &[i32::MAX as u32]) in test_convert_from_int()
630 BigInt::from_slice(Minus, &[0, 1 << 31]), in test_convert_from_int()
631 BigInt::from_slice(Plus, &[u32::MAX, i32::MAX as u32]) in test_convert_from_int()
635 BigInt::from_slice(Minus, &[0, 0, 0, 1 << 31]), in test_convert_from_int()
636 BigInt::from_slice(Plus, &[u32::MAX, u32::MAX, u32::MAX, i32::MAX as u32]) in test_convert_from_int()
650 BigInt::from(BigUint::from_slice(&[1, 2, 3])), in test_convert_from_biguint()
651 BigInt::from_slice(Plus, &[1, 2, 3]) in test_convert_from_biguint()
659 let a = BigInt::from_slice(Plus, a_vec); in test_add()
660 let b = BigInt::from_slice(Plus, b_vec); in test_add()
661 let c = BigInt::from_slice(Plus, c_vec); in test_add()
688 let a = BigInt::from_slice(Plus, a_vec); in test_sub()
689 let b = BigInt::from_slice(Plus, b_vec); in test_sub()
690 let c = BigInt::from_slice(Plus, c_vec); in test_sub()
717 let a = BigInt::from_slice(Plus, a_vec); in test_mul()
718 let b = BigInt::from_slice(Plus, b_vec); in test_mul()
719 let c = BigInt::from_slice(Plus, c_vec); in test_mul()
739 let a = BigInt::from_slice(Plus, a_vec); in test_mul()
740 let b = BigInt::from_slice(Plus, b_vec); in test_mul()
741 let c = BigInt::from_slice(Plus, c_vec); in test_mul()
742 let d = BigInt::from_slice(Plus, d_vec); in test_mul()
781 let a = BigInt::from_slice(Plus, a_vec); in test_div_mod_floor()
782 let b = BigInt::from_slice(Plus, b_vec); in test_div_mod_floor()
783 let c = BigInt::from_slice(Plus, c_vec); in test_div_mod_floor()
795 let a = BigInt::from_slice(Plus, a_vec); in test_div_mod_floor()
796 let b = BigInt::from_slice(Plus, b_vec); in test_div_mod_floor()
797 let c = BigInt::from_slice(Plus, c_vec); in test_div_mod_floor()
798 let d = BigInt::from_slice(Plus, d_vec); in test_div_mod_floor()
833 let a = BigInt::from_slice(Plus, a_vec); in test_div_rem()
834 let b = BigInt::from_slice(Plus, b_vec); in test_div_rem()
835 let c = BigInt::from_slice(Plus, c_vec); in test_div_rem()
847 let a = BigInt::from_slice(Plus, a_vec); in test_div_rem()
848 let b = BigInt::from_slice(Plus, b_vec); in test_div_rem()
849 let c = BigInt::from_slice(Plus, c_vec); in test_div_rem()
850 let d = BigInt::from_slice(Plus, d_vec); in test_div_rem()
880 let a = BigInt::from_slice(Plus, a_vec); in test_div_ceil()
881 let b = BigInt::from_slice(Plus, b_vec); in test_div_ceil()
882 let c = BigInt::from_slice(Plus, c_vec); in test_div_ceil()
894 let a = BigInt::from_slice(Plus, a_vec); in test_div_ceil()
895 let b = BigInt::from_slice(Plus, b_vec); in test_div_ceil()
896 let c = BigInt::from_slice(Plus, c_vec); in test_div_ceil()
897 let d = BigInt::from_slice(Plus, d_vec); in test_div_ceil()
909 let a = BigInt::from_slice(Plus, a_vec); in test_checked_add()
910 let b = BigInt::from_slice(Plus, b_vec); in test_checked_add()
911 let c = BigInt::from_slice(Plus, c_vec); in test_checked_add()
928 let a = BigInt::from_slice(Plus, a_vec); in test_checked_sub()
929 let b = BigInt::from_slice(Plus, b_vec); in test_checked_sub()
930 let c = BigInt::from_slice(Plus, c_vec); in test_checked_sub()
947 let a = BigInt::from_slice(Plus, a_vec); in test_checked_mul()
948 let b = BigInt::from_slice(Plus, b_vec); in test_checked_mul()
949 let c = BigInt::from_slice(Plus, c_vec); in test_checked_mul()
960 let a = BigInt::from_slice(Plus, a_vec); in test_checked_mul()
961 let b = BigInt::from_slice(Plus, b_vec); in test_checked_mul()
962 let c = BigInt::from_slice(Plus, c_vec); in test_checked_mul()
963 let d = BigInt::from_slice(Plus, d_vec); in test_checked_mul()
973 let a = BigInt::from_slice(Plus, a_vec); in test_checked_div()
974 let b = BigInt::from_slice(Plus, b_vec); in test_checked_div()
975 let c = BigInt::from_slice(Plus, c_vec); in test_checked_div()