| /external/rust/crates/num-bigint/src/bigint/ |
| D | division.rs | 13 impl<'a, 'b> Div<&'b BigInt> for &'a BigInt { implementation 17 fn div(self, other: &BigInt) -> BigInt { in div() 23 impl<'a> DivAssign<&'a BigInt> for BigInt { implementation 25 fn div_assign(&mut self, other: &BigInt) { in div_assign() 37 impl Div<u32> for BigInt { implementation 41 fn div(self, other: u32) -> BigInt { in div() 46 impl DivAssign<u32> for BigInt { implementation 60 fn div(self, other: BigInt) -> BigInt { in div() 65 impl Div<u64> for BigInt { implementation 69 fn div(self, other: u64) -> BigInt { in div() [all …]
|
| D | addition.rs | 33 impl<'a, 'b> Add<&'b BigInt> for &'a BigInt { implementation 37 fn add(self, other: &BigInt) -> BigInt { in add() 49 impl<'a> Add<BigInt> for &'a BigInt { implementation 53 fn add(self, other: BigInt) -> BigInt { in add() 58 impl<'a> Add<&'a BigInt> for BigInt { implementation 62 fn add(self, other: &BigInt) -> BigInt { in add() 67 impl Add<BigInt> for BigInt { implementation 71 fn add(self, other: BigInt) -> BigInt { in add() 76 impl<'a> AddAssign<&'a BigInt> for BigInt { implementation 78 fn add_assign(&mut self, other: &BigInt) { in add_assign() [all …]
|
| D | subtraction.rs | 32 impl<'a, 'b> Sub<&'b BigInt> for &'a BigInt { implementation 36 fn sub(self, other: &BigInt) -> BigInt { in sub() 48 impl<'a> Sub<BigInt> for &'a BigInt { implementation 52 fn sub(self, other: BigInt) -> BigInt { in sub() 57 impl<'a> Sub<&'a BigInt> for BigInt { implementation 61 fn sub(self, other: &BigInt) -> BigInt { in sub() 66 impl Sub<BigInt> for BigInt { implementation 70 fn sub(self, other: BigInt) -> BigInt { in sub() 75 impl<'a> SubAssign<&'a BigInt> for BigInt { implementation 77 fn sub_assign(&mut self, other: &BigInt) { in sub_assign() [all …]
|
| D | multiplication.rs | 32 let BigInt { data: x, .. } = self; localVariable 33 let BigInt { data: y, .. } = other; localVariable 52 let BigInt { data: y, .. } = other; localVariable 74 impl Mul<u32> for BigInt { implementation 78 fn mul(self, other: u32) -> BigInt { in mul() 83 impl MulAssign<u32> for BigInt { implementation 93 impl Mul<u64> for BigInt { implementation 97 fn mul(self, other: u64) -> BigInt { in mul() 102 impl MulAssign<u64> for BigInt { implementation 112 impl Mul<u128> for BigInt { implementation [all …]
|
| D | convert.rs | 15 impl FromStr for BigInt { implementation 19 fn from_str(s: &str) -> Result<BigInt, ParseBigIntError> { in from_str() 24 impl Num for BigInt { implementation 29 fn from_str_radix(mut s: &str, radix: u32) -> Result<BigInt, ParseBigIntError> { in from_str_radix() 44 impl ToPrimitive for BigInt { implementation 148 impl FromPrimitive for BigInt { implementation 150 fn from_i64(n: i64) -> Option<BigInt> { in from_i64() 155 fn from_i128(n: i128) -> Option<BigInt> { in from_i128() 160 fn from_u64(n: u64) -> Option<BigInt> { in from_u64() 165 fn from_u128(n: u128) -> Option<BigInt> { in from_u128() [all …]
|
| D | bits.rs | 111 impl<'a, 'b> BitAnd<&'b BigInt> for &'a BigInt { implementation 115 fn bitand(self, other: &BigInt) -> BigInt { in bitand() 133 impl<'a> BitAnd<&'a BigInt> for BigInt { implementation 137 fn bitand(mut self, other: &BigInt) -> BigInt { in bitand() 145 impl<'a> BitAndAssign<&'a BigInt> for BigInt { implementation 146 fn bitand_assign(&mut self, other: &BigInt) { in bitand_assign() 250 impl<'a, 'b> BitOr<&'b BigInt> for &'a BigInt { implementation 254 fn bitor(self, other: &BigInt) -> BigInt { in bitor() 273 impl<'a> BitOr<&'a BigInt> for BigInt { implementation 277 fn bitor(mut self, other: &BigInt) -> BigInt { in bitor() [all …]
|
| D | power.rs | 71 pub(super) fn modpow(x: &BigInt, exponent: &BigInt, modulus: &BigInt) -> BigInt { in modpow()
|
| D | arbitrary.rs | 8 impl quickcheck::Arbitrary for BigInt { implementation 23 impl arbitrary::Arbitrary<'_> for BigInt { implementation
|
| D | serde.rs | 39 impl Serialize for BigInt { implementation 50 impl<'de> Deserialize<'de> for BigInt { implementation
|
| D | shift.rs | 100 fn shr_round_down<T: PrimInt>(i: &BigInt, shift: T) -> bool { in shr_round_down()
|
| /external/rust/crates/num-bigint/tests/ |
| D | bigint_scalar.rs | 16 fn check(x: &BigInt, y: &BigInt, z: &BigInt) { in test_scalar_add() 42 fn check(x: &BigInt, y: &BigInt, z: &BigInt) { in test_scalar_sub() 68 fn check(x: &BigInt, y: &BigInt, z: &BigInt) { in test_scalar_mul() 92 fn check_sub(a: &BigInt, b: u32, ans_q: &BigInt, ans_r: &BigInt) { in test_scalar_div_rem() 116 fn check(a: &BigInt, b: u32, q: &BigInt, r: &BigInt) { in test_scalar_div_rem()
|
| D | bigint.rs | 260 fn check(b1: BigInt, i: i64) { in test_convert_i64() 291 fn check(b1: BigInt, i: i128) { in test_convert_i128() 322 fn check(b1: BigInt, u: u64) { in test_convert_u64() 348 fn check(b1: BigInt, u: u128) { in test_convert_u128() 375 fn check(b1: &BigInt, f: f32) { in test_convert_f32() 473 fn check(b1: &BigInt, f: f64) { in test_convert_f64() 562 fn check(n: BigInt, ans_1: BigUint) { in test_convert_to_biguint() 751 fn check_sub(a: &BigInt, b: &BigInt, ans_d: &BigInt, ans_m: &BigInt) { in test_div_mod_floor() 764 fn check(a: &BigInt, b: &BigInt, d: &BigInt, m: &BigInt) { in test_div_mod_floor() 808 fn check_sub(a: &BigInt, b: &BigInt, ans_q: &BigInt, ans_r: &BigInt) { in test_div_rem() [all …]
|
| D | modpow.rs | 117 fn check(b: &BigInt, e: &BigInt, m: &BigInt, r: &BigInt) { in check_modpow()
|
| D | bigint_bitwise.rs | 14 fn to_bigint(&self) -> Option<BigInt> { in to_bigint()
|
| D | biguint.rs | 763 fn check(n: BigUint, ans: BigInt) { in test_convert_to_bigint()
|
| /external/rust/crates/num-bigint/src/ |
| D | bigint.rs | 62 pub struct BigInt { struct 69 impl Clone for BigInt { implementation 85 impl hash::Hash for BigInt { implementation 96 impl PartialEq for BigInt { implementation 105 impl Eq for BigInt {} implementation 107 impl PartialOrd for BigInt { implementation 114 impl Ord for BigInt { implementation 132 impl Default for BigInt { implementation 139 impl fmt::Debug for BigInt { implementation 145 impl fmt::Display for BigInt { implementation [all …]
|
| D | bigrand.rs | 23 fn gen_bigint(&mut self, bit_size: u64) -> BigInt; in gen_bigint() 37 fn gen_bigint_range(&mut self, lbound: &BigInt, ubound: &BigInt) -> BigInt; in gen_bigint_range() 87 fn gen_bigint(&mut self, bit_size: u64) -> BigInt { in gen_bigint() 131 fn gen_bigint_range(&mut self, lbound: &BigInt, ubound: &BigInt) -> BigInt { in gen_bigint_range() 252 impl SampleUniform for BigInt { implementation 280 fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> BigInt { in sample()
|
| /external/rust/crates/syn/src/ |
| D | bigint.rs | 4 pub struct BigInt { struct 8 impl BigInt { impl 39 impl AddAssign<u8> for BigInt { implementation 54 impl MulAssign<u8> for BigInt { implementation
|
| /external/rust/crates/num-bigint/benches/ |
| D | shootout-pidigits.rs | 63 fn from_i32(i: i32) -> BigInt { in from_i32()
|
| /external/rust/crates/num-bigint/src/biguint/ |
| D | multiplication.rs | 62 fn bigint_from_slice(slice: &[BigDigit]) -> BigInt { in bigint_from_slice() 556 fn sub_sign_i(a: &[BigDigit], b: &[BigDigit]) -> BigInt { in test_sub_sign()
|
| /external/starlark-go/starlark/ |
| D | int.go | 91 func (i Int) BigInt() *big.Int { func
|
| /external/rust/crates/der-parser/tests/ |
| D | ber_parser.rs | 207 fn tc_ber_bigint(i: &[u8], out: Result<BigInt, BerError>) { in tc_ber_bigint()
|
| /external/rust/crates/der-parser/src/ber/ |
| D | ber.rs | 909 pub fn as_bigint(&self) -> Result<BigInt, BerError> { in as_bigint()
|