/aosp_15_r20/external/rust/android-crates-io/crates/num-bigint/src/biguint/ |
D | division.rs | 43 pub(super) fn div_rem_digit(mut a: BigUint, b: BigDigit) -> (BigUint, BigDigit) { in div_rem_digit() 68 fn rem_digit(a: &BigUint, b: BigDigit) -> BigDigit { in rem_digit() 119 fn div_rem(mut u: BigUint, mut d: BigUint) -> (BigUint, BigUint) { in div_rem() 166 pub(super) fn div_rem_ref(u: &BigUint, d: &BigUint) -> (BigUint, BigUint) { in div_rem_ref() 210 fn div_rem_core(mut a: BigUint, b: &[BigDigit]) -> (BigUint, BigUint) { in div_rem_core() 307 impl Div<BigUint> for BigUint { implementation 311 fn div(self, other: BigUint) -> BigUint { in div() 317 impl Div<&BigUint> for &BigUint { implementation 321 fn div(self, other: &BigUint) -> BigUint { in div() 326 impl DivAssign<&BigUint> for BigUint { implementation [all …]
|
D | subtraction.rs | 111 impl Sub<&BigUint> for BigUint { implementation 114 fn sub(mut self, other: &BigUint) -> BigUint { in sub() 119 impl SubAssign<&BigUint> for BigUint { implementation 120 fn sub_assign(&mut self, other: &BigUint) { in sub_assign() 126 impl Sub<BigUint> for &BigUint { implementation 129 fn sub(self, mut other: BigUint) -> BigUint { in sub() 150 impl Sub<u32> for BigUint { implementation 154 fn sub(mut self, other: u32) -> BigUint { in sub() 160 impl SubAssign<u32> for BigUint { implementation 172 fn sub(self, mut other: BigUint) -> BigUint { in sub() [all …]
|
D | convert.rs | 35 impl FromStr for BigUint { implementation 39 fn from_str(s: &str) -> Result<BigUint, ParseBigIntError> { in from_str() 46 pub(super) fn from_bitwise_digits_le(v: &[u8], bits: u8) -> BigUint { in from_bitwise_digits_le() 67 fn from_inexact_bitwise_digits_le(v: &[u8], bits: u8) -> BigUint { in from_inexact_bitwise_digits_le() 104 fn from_radix_digits_be(v: &[u8], radix: u32) -> BigUint { in from_radix_digits_be() 157 pub(super) fn from_radix_be(buf: &[u8], radix: u32) -> Option<BigUint> { in from_radix_be() 188 pub(super) fn from_radix_le(buf: &[u8], radix: u32) -> Option<BigUint> { in from_radix_le() 219 impl Num for BigUint { implementation 223 fn from_str_radix(s: &str, radix: u32) -> Result<BigUint, ParseBigIntError> { in from_str_radix() 325 impl ToPrimitive for BigUint { implementation [all …]
|
D | bits.rs | 10 impl BitAnd<&BigUint> for &BigUint { implementation 14 fn bitand(self, other: &BigUint) -> BigUint { in bitand() 26 impl BitAnd<&BigUint> for BigUint { implementation 30 fn bitand(mut self, other: &BigUint) -> BigUint { in bitand() 35 impl BitAndAssign<&BigUint> for BigUint { implementation 37 fn bitand_assign(&mut self, other: &BigUint) { in bitand_assign() 49 impl BitOr<&BigUint> for BigUint { implementation 52 fn bitor(mut self, other: &BigUint) -> BigUint { in bitor() 57 impl BitOrAssign<&BigUint> for BigUint { implementation 59 fn bitor_assign(&mut self, other: &BigUint) { in bitor_assign() [all …]
|
D | addition.rs | 89 impl Add<&BigUint> for BigUint { implementation 92 fn add(mut self, other: &BigUint) -> BigUint { in add() 97 impl AddAssign<&BigUint> for BigUint { implementation 99 fn add_assign(&mut self, other: &BigUint) { in add_assign() 120 impl Add<u32> for BigUint { implementation 124 fn add(mut self, other: u32) -> BigUint { in add() 130 impl AddAssign<u32> for BigUint { implementation 146 impl Add<u64> for BigUint { implementation 150 fn add(mut self, other: u64) -> BigUint { in add() 156 impl AddAssign<u64> for BigUint { implementation [all …]
|
D | power.rs | 9 impl Pow<&BigUint> for BigUint { implementation 13 fn pow(self, exp: &BigUint) -> BigUint { in pow() 30 impl Pow<BigUint> for BigUint { implementation 34 fn pow(self, exp: BigUint) -> BigUint { in pow() 39 impl Pow<&BigUint> for &BigUint { implementation 43 fn pow(self, exp: &BigUint) -> BigUint { in pow() 54 impl Pow<BigUint> for &BigUint { implementation 58 fn pow(self, exp: BigUint) -> BigUint { in pow() 134 pub(super) fn modpow(x: &BigUint, exponent: &BigUint, modulus: &BigUint) -> BigUint { in modpow() 149 fn plain_modpow(base: &BigUint, exp_data: &[BigDigit], modulus: &BigUint) -> BigUint { in plain_modpow()
|
D | multiplication.rs | 352 fn mul3(x: &[BigDigit], y: &[BigDigit]) -> BigUint { in mul3() 360 fn scalar_mul(a: &mut BigUint, b: BigDigit) { in scalar_mul() 380 fn sub_sign(mut a: &[BigDigit], mut b: &[BigDigit]) -> (Sign, BigUint) { in sub_sign() argument 461 impl Mul<u32> for BigUint { implementation 465 fn mul(mut self, other: u32) -> BigUint { in mul() 470 impl MulAssign<u32> for BigUint { implementation 477 impl Mul<u64> for BigUint { implementation 481 fn mul(mut self, other: u64) -> BigUint { in mul() 486 impl MulAssign<u64> for BigUint { implementation 505 impl Mul<u128> for BigUint { implementation [all …]
|
D | shift.rs | 11 fn biguint_shl<T: PrimInt>(n: Cow<'_, BigUint>, shift: T) -> BigUint { in biguint_shl() argument 24 fn biguint_shl2(n: Cow<'_, BigUint>, digits: usize, shift: u8) -> BigUint { in biguint_shl2() argument 53 fn biguint_shr<T: PrimInt>(n: Cow<'_, BigUint>, shift: T) -> BigUint { in biguint_shr() argument 66 fn biguint_shr2(n: Cow<'_, BigUint>, digits: usize, shift: u8) -> BigUint { in biguint_shr2() argument
|
D | monty.rs | 45 fn montgomery(x: &BigUint, y: &BigUint, m: &BigUint, k: BigDigit, n: usize) -> BigUint { in montgomery() 136 pub(super) fn monty_modpow(x: &BigUint, y: &BigUint, m: &BigUint) -> BigUint { in monty_modpow()
|
D | arbitrary.rs | 9 impl quickcheck::Arbitrary for BigUint { implementation 22 impl arbitrary::Arbitrary<'_> for BigUint { implementation
|
D | serde.rs | 20 impl Serialize for BigUint { implementation 61 impl<'de> Deserialize<'de> for BigUint { implementation
|
/aosp_15_r20/external/rust/android-crates-io/crates/num-bigint/src/ |
D | biguint.rs | 38 pub struct BigUint { struct 44 impl Clone for BigUint { implementation 58 impl hash::Hash for BigUint { implementation 66 impl PartialEq for BigUint { implementation 74 impl Eq for BigUint {} implementation 76 impl PartialOrd for BigUint { implementation 83 impl Ord for BigUint { implementation 101 impl Default for BigUint { implementation 108 impl fmt::Debug for BigUint { implementation 114 impl fmt::Display for BigUint { implementation [all …]
|
D | bigrand.rs | 20 fn gen_biguint(&mut self, bit_size: u64) -> BigUint; in gen_biguint() 27 fn gen_biguint_below(&mut self, bound: &BigUint) -> BigUint; in gen_biguint_below() 32 fn gen_biguint_range(&mut self, lbound: &BigUint, ubound: &BigUint) -> BigUint; in gen_biguint_range() 51 fn gen_biguint(&mut self, bit_size: u64) -> BigUint { in gen_biguint() 62 fn gen_biguint(&mut self, bit_size: u64) -> BigUint { in gen_biguint() 111 fn gen_biguint_below(&mut self, bound: &BigUint) -> BigUint { in gen_biguint_below() 122 fn gen_biguint_range(&mut self, lbound: &BigUint, ubound: &BigUint) -> BigUint { in gen_biguint_range() 196 impl SampleUniform for BigUint { implementation 273 fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> BigUint { in sample()
|
D | bigint.rs | 949 pub fn magnitude(&self) -> &BigUint { in magnitude() 967 pub fn into_parts(self) -> (Sign, BigUint) { in into_parts() argument 980 pub fn to_biguint(&self) -> Option<BigUint> { in to_biguint()
|
/aosp_15_r20/external/rust/android-crates-io/crates/num-bigint/tests/ |
D | biguint_scalar.rs | 14 fn check(x: &BigUint, y: &BigUint, z: &BigUint) { in test_scalar_add() 33 fn check(x: &BigUint, y: &BigUint, z: &BigUint) { in test_scalar_sub() 52 fn check(x: &BigUint, y: &BigUint, z: &BigUint) { in test_scalar_mul() 77 fn check(x: &BigUint, y: &BigUint, z: &BigUint, r: &BigUint) { in test_scalar_div_rem()
|
D | biguint.rs | 511 fn check(b1: BigUint, i: i64) { in test_convert_i64() 535 fn check(b1: BigUint, i: i128) { in test_convert_i128() 560 fn check(b1: BigUint, u: u64) { in test_convert_u64() 583 fn check(b1: BigUint, u: u128) { in test_convert_u128() 607 fn check(b1: &BigUint, f: f32) { in test_convert_f32() 695 fn check(b1: &BigUint, f: f64) { in test_convert_f64() 777 fn check(n: BigUint, ans: BigInt) { in test_convert_to_bigint() 930 fn check(a: &BigUint, b: &BigUint, d: &BigUint, m: &BigUint) { in test_div_ceil() 967 fn check(a: &BigUint, b: &BigUint, d: &BigUint, m: &BigUint) { in test_div_rem_euclid() 1742 fn factor(n: usize) -> BigUint { in test_factor()
|
D | bigint.rs | 570 fn check(n: BigInt, ans_1: BigUint) { in test_convert_to_biguint()
|
/aosp_15_r20/external/cronet/third_party/rust/chromium_crates_io/vendor/fend-core-1.4.6/src/num/ |
H A D | biguint.rs | 11 pub(crate) enum BigUint { enum 17 impl hash::Hash for BigUint { implementation 37 impl BigUint { impl 571 impl Ord for BigUint { implementation 592 impl PartialOrd for BigUint { implementation 598 impl PartialEq for BigUint { implementation 604 impl Eq for BigUint {} implementation 606 impl From<u64> for BigUint { implementation 612 impl fmt::Debug for BigUint { implementation 640 impl Format for BigUint { implementation
|
H A D | bigrat.rs | 329 f: impl FnOnce(BigUint, &I) -> FResult<R>, in apply_uint_op() 503 fn format_as_integer<I: Interrupt>( in format_as_integer() 704 numerator: &BigUint, in format_trailing_digits() 705 denominator: &BigUint, in format_trailing_digits() 785 numerator: &BigUint, in format_nonrecurring() 788 mut next_digit: impl FnMut(usize, BigUint, &BigUint) -> Result<(BigUint, BigUint), NextDigitErr>, in format_nonrecurring()
|
H A D | continued_fraction.rs | 128 f: fn() -> Option<BigUint>, 647 fn format_as_integer<I: Interrupt>( in format_as_integer()
|
/aosp_15_r20/external/rust/android-crates-io/crates/num-bigint/src/bigint/ |
D | convert.rs | 291 impl ToBigInt for BigUint { implementation 307 fn to_biguint(&self) -> Option<BigUint> { in to_biguint() 317 impl TryFrom<&BigInt> for BigUint { implementation 321 fn try_from(value: &BigInt) -> Result<BigUint, TryFromBigIntError<()>> { in try_from() 329 impl TryFrom<BigInt> for BigUint { implementation 333 fn try_from(value: BigInt) -> Result<BigUint, TryFromBigIntError<BigInt>> { in try_from()
|
/aosp_15_r20/external/rust/android-crates-io/crates/num-bigint/benches/ |
D | gcd.rs | 14 fn bench(b: &mut Bencher, bits: u64, gcd: fn(&BigUint, &BigUint) -> BigUint) { in bench() 24 fn euclid(x: &BigUint, y: &BigUint) -> BigUint { in euclid()
|
D | bigint.rs | 38 fn factorial(n: usize) -> BigUint { in factorial() 48 fn fib(n: usize) -> BigUint { in fib() 60 fn fib2(n: usize) -> BigUint { in fib2()
|
D | roots.rs | 20 fn check(x: &BigUint, n: u32) { in check()
|