/external/rust/android-crates-io/crates/num-bigint/src/biguint/ |
D | division.rs | 85 pub(super) fn div_rem_digit(mut a: BigUint, b: BigDigit) -> (BigUint, BigDigit) { in div_rem_digit() 110 fn rem_digit(a: &BigUint, b: BigDigit) -> BigDigit { in rem_digit() 161 fn div_rem(mut u: BigUint, mut d: BigUint) -> (BigUint, BigUint) { in div_rem() 208 pub(super) fn div_rem_ref(u: &BigUint, d: &BigUint) -> (BigUint, BigUint) { in div_rem_ref() 252 fn div_rem_core(mut a: BigUint, b: &[BigDigit]) -> (BigUint, BigUint) { in div_rem_core() 349 impl Div<BigUint> for BigUint { implementation 353 fn div(self, other: BigUint) -> BigUint { in div() 359 impl Div<&BigUint> for &BigUint { implementation 363 fn div(self, other: &BigUint) -> BigUint { in div() 368 impl DivAssign<&BigUint> 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 | 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 193 impl Sub<u64> for BigUint { implementation [all …]
|
D | addition.rs | 91 impl Add<&BigUint> for BigUint { implementation 94 fn add(mut self, other: &BigUint) -> BigUint { in add() 99 impl AddAssign<&BigUint> for BigUint { implementation 101 fn add_assign(&mut self, other: &BigUint) { in add_assign() 122 impl Add<u32> for BigUint { implementation 126 fn add(mut self, other: u32) -> BigUint { in add() 132 impl AddAssign<u32> for BigUint { implementation 148 impl Add<u64> for BigUint { implementation 152 fn add(mut self, other: u64) -> BigUint { in add() 158 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 | convert.rs | 33 impl FromStr for BigUint { implementation 37 fn from_str(s: &str) -> Result<BigUint, ParseBigIntError> { in from_str() 44 pub(super) fn from_bitwise_digits_le(v: &[u8], bits: u8) -> BigUint { in from_bitwise_digits_le() 65 fn from_inexact_bitwise_digits_le(v: &[u8], bits: u8) -> BigUint { in from_inexact_bitwise_digits_le() 102 fn from_radix_digits_be(v: &[u8], radix: u32) -> BigUint { in from_radix_digits_be() 155 pub(super) fn from_radix_be(buf: &[u8], radix: u32) -> Option<BigUint> { in from_radix_be() 186 pub(super) fn from_radix_le(buf: &[u8], radix: u32) -> Option<BigUint> { in from_radix_le() 217 impl Num for BigUint { implementation 221 fn from_str_radix(s: &str, radix: u32) -> Result<BigUint, ParseBigIntError> { in from_str_radix() 322 impl ToPrimitive for BigUint { implementation [all …]
|
D | shift.rs | 12 fn biguint_shl<T: PrimInt>(n: Cow<'_, BigUint>, shift: T) -> BigUint { in biguint_shl() argument 25 fn biguint_shl2(n: Cow<'_, BigUint>, digits: usize, shift: u8) -> BigUint { in biguint_shl2() argument 54 fn biguint_shr<T: PrimInt>(n: Cow<'_, BigUint>, shift: T) -> BigUint { in biguint_shr() argument 67 fn biguint_shr2(n: Cow<'_, BigUint>, digits: usize, shift: u8) -> BigUint { in biguint_shr2() argument
|
D | multiplication.rs | 410 fn mul3(x: &[BigDigit], y: &[BigDigit]) -> BigUint { in mul3() 418 fn scalar_mul(a: &mut BigUint, b: BigDigit) { in scalar_mul() 438 fn sub_sign(mut a: &[BigDigit], mut b: &[BigDigit]) -> (Sign, BigUint) { in sub_sign() argument 519 impl Mul<u32> for BigUint { implementation 523 fn mul(mut self, other: u32) -> BigUint { in mul() 528 impl MulAssign<u32> for BigUint { implementation 535 impl Mul<u64> for BigUint { implementation 539 fn mul(mut self, other: u64) -> BigUint { in mul() 544 impl MulAssign<u64> for BigUint { implementation 563 impl Mul<u128> for BigUint { implementation [all …]
|
D | monty.rs | 46 fn montgomery(x: &BigUint, y: &BigUint, m: &BigUint, k: BigDigit, n: usize) -> BigUint { in montgomery() 137 pub(super) fn monty_modpow(x: &BigUint, y: &BigUint, m: &BigUint) -> BigUint { in monty_modpow()
|
D | arbitrary.rs | 12 impl quickcheck::Arbitrary for BigUint { implementation 26 impl arbitrary::Arbitrary<'_> for BigUint { implementation
|
D | serde.rs | 22 impl Serialize for BigUint { implementation 63 impl<'de> Deserialize<'de> for BigUint { implementation
|
/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 | 508 fn check(b1: BigUint, i: i64) { in test_convert_i64() 532 fn check(b1: BigUint, i: i128) { in test_convert_i128() 557 fn check(b1: BigUint, u: u64) { in test_convert_u64() 580 fn check(b1: BigUint, u: u128) { in test_convert_u128() 604 fn check(b1: &BigUint, f: f32) { in test_convert_f32() 692 fn check(b1: &BigUint, f: f64) { in test_convert_f64() 774 fn check(n: BigUint, ans: BigInt) { in test_convert_to_bigint() 927 fn check(a: &BigUint, b: &BigUint, d: &BigUint, m: &BigUint) { in test_div_ceil() 964 fn check(a: &BigUint, b: &BigUint, d: &BigUint, m: &BigUint) { in test_div_rem_euclid() 1739 fn factor(n: usize) -> BigUint { in test_factor()
|
/external/rust/android-crates-io/crates/num-bigint/src/ |
D | biguint.rs | 34 pub struct BigUint { struct 40 impl Clone for BigUint { argument 54 impl hash::Hash for BigUint { implementation 62 impl PartialEq for BigUint { implementation 70 impl Eq for BigUint {} implementation 72 impl PartialOrd for BigUint { implementation 79 impl Ord for BigUint { implementation 97 impl Default for BigUint { implementation 104 impl fmt::Debug for BigUint { implementation 110 impl fmt::Display for BigUint { implementation [all …]
|
D | bigrand.rs | 22 fn gen_biguint(&mut self, bit_size: u64) -> BigUint; in gen_biguint() 29 fn gen_biguint_below(&mut self, bound: &BigUint) -> BigUint; in gen_biguint_below() 34 fn gen_biguint_range(&mut self, lbound: &BigUint, ubound: &BigUint) -> BigUint; in gen_biguint_range() 113 fn gen_biguint_below(&mut self, bound: &BigUint) -> BigUint { in gen_biguint_below() 124 fn gen_biguint_range(&mut self, lbound: &BigUint, ubound: &BigUint) -> BigUint { in gen_biguint_range() 198 impl SampleUniform for BigUint { implementation 275 fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> BigUint { in sample()
|
/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()
|
/external/rust/android-crates-io/crates/num-bigint/src/bigint/ |
D | convert.rs | 286 impl ToBigInt for BigUint { implementation 302 fn to_biguint(&self) -> Option<BigUint> { in to_biguint() 311 impl TryFrom<&BigInt> for BigUint { implementation 315 fn try_from(value: &BigInt) -> Result<BigUint, TryFromBigIntError<()>> { in try_from() 322 impl TryFrom<BigInt> for BigUint { implementation 326 fn try_from(value: BigInt) -> Result<BigUint, TryFromBigIntError<BigInt>> { in try_from()
|
/external/cronet/stable/third_party/rust/chromium_crates_io/vendor/fend-core-1.5.5/src/num/ |
D | biguint.rs | 11 pub(crate) enum BigUint { enum 17 impl hash::Hash for BigUint { implementation 37 impl BigUint { impl 762 impl Ord for BigUint { implementation 783 impl PartialOrd for BigUint { implementation 789 impl PartialEq for BigUint { implementation 795 impl Eq for BigUint {} implementation 797 impl From<u64> for BigUint { implementation 803 impl fmt::Debug for BigUint { implementation 831 impl Format for BigUint { implementation
|
D | bigrat.rs | 141 pub(crate) fn try_as_biguint<I: Interrupt>(mut self, int: &I) -> FResult<BigUint> { in try_as_biguint() 325 f: impl FnOnce(BigUint, &I) -> FResult<R>, in apply_uint_op() 499 fn format_as_integer<I: Interrupt>( in format_as_integer() 701 numerator: &BigUint, in format_trailing_digits() 702 denominator: &BigUint, in format_trailing_digits() 790 numerator: &BigUint, in format_nonrecurring() 793 mut next_digit: impl FnMut(usize, BigUint, &BigUint) -> Result<(BigUint, BigUint), NextDigitErr>, in format_nonrecurring()
|
D | continued_fraction.rs | 128 f: fn() -> Option<BigUint>, 647 fn format_as_integer<I: Interrupt>( in format_as_integer()
|
/external/cronet/tot/third_party/rust/chromium_crates_io/vendor/fend-core-1.5.5/src/num/ |
D | biguint.rs | 11 pub(crate) enum BigUint { enum 17 impl hash::Hash for BigUint { implementation 37 impl BigUint { impl 762 impl Ord for BigUint { implementation 783 impl PartialOrd for BigUint { implementation 789 impl PartialEq for BigUint { implementation 795 impl Eq for BigUint {} implementation 797 impl From<u64> for BigUint { implementation 803 impl fmt::Debug for BigUint { implementation 831 impl Format for BigUint { implementation
|
D | bigrat.rs | 141 pub(crate) fn try_as_biguint<I: Interrupt>(mut self, int: &I) -> FResult<BigUint> { in try_as_biguint() 325 f: impl FnOnce(BigUint, &I) -> FResult<R>, in apply_uint_op() 499 fn format_as_integer<I: Interrupt>( in format_as_integer() 701 numerator: &BigUint, in format_trailing_digits() 702 denominator: &BigUint, in format_trailing_digits() 790 numerator: &BigUint, in format_nonrecurring() 793 mut next_digit: impl FnMut(usize, BigUint, &BigUint) -> Result<(BigUint, BigUint), NextDigitErr>, in format_nonrecurring()
|
D | continued_fraction.rs | 128 f: fn() -> Option<BigUint>, 647 fn format_as_integer<I: Interrupt>( in format_as_integer()
|