/external/rust/crates/minimal-lexical/tests/ |
D | vec_tests.rs | 18 let mut x = VecType::from_u64(1); in simple_test() 52 assert_eq!(VecType::from_u64(U64_MAX).hi64(), (U64_MAX, false)); in simple_test() 57 assert_eq!(VecType::from_u64(0xA).hi64(), (0xA000000000000000, false)); in hi64_test() 58 assert_eq!(VecType::from_u64(0xAB).hi64(), (0xAB00000000000000, false)); in hi64_test() 59 assert_eq!(VecType::from_u64(0xAB00000000).hi64(), (0xAB00000000000000, false)); in hi64_test() 60 assert_eq!(VecType::from_u64(0xA23456789A).hi64(), (0xA23456789A000000, false)); in hi64_test() 66 let x = VecType::from_u64(1); in cmp_test() 67 let y = VecType::from_u64(2); in cmp_test() 74 let y = VecType::from_u64(2); in cmp_test() 117 let mut x = VecType::from_u64(0xFFFFFFFF); in math_test() [all …]
|
/external/rust/crates/num-derive/tests/ |
D | with_custom_values.rs | 28 num_renamed::FromPrimitive::from_u64(0), in test_from_primitive_for_enum_with_custom_value() 29 num_renamed::FromPrimitive::from_u64(5), in test_from_primitive_for_enum_with_custom_value() 30 num_renamed::FromPrimitive::from_u64(6), in test_from_primitive_for_enum_with_custom_value() 31 num_renamed::FromPrimitive::from_u64(-8isize as u64), in test_from_primitive_for_enum_with_custom_value() 32 num_renamed::FromPrimitive::from_u64(3), in test_from_primitive_for_enum_with_custom_value() 64 .map(|&x| -> Option<Color> { num_renamed::FromPrimitive::from_u64(x) }) in test_reflexive_for_enum_with_custom_value()
|
D | trivial.rs | 25 num_renamed::FromPrimitive::from_u64(0), in test_from_primitive_for_trivial_case() 26 num_renamed::FromPrimitive::from_u64(1), in test_from_primitive_for_trivial_case() 27 num_renamed::FromPrimitive::from_u64(2), in test_from_primitive_for_trivial_case() 28 num_renamed::FromPrimitive::from_u64(3), in test_from_primitive_for_trivial_case() 58 .map(|&x| -> Option<Color> { num_renamed::FromPrimitive::from_u64(x) }) in test_reflexive_for_trivial_case()
|
D | empty_enum.rs | 20 let v: [Option<Color>; 1] = [num_renamed::FromPrimitive::from_u64(0)]; in test_empty_enum()
|
D | issue-6.rs | 14 assert!(SomeEnum::from_u64(1).is_some()); in test_trivial_numeric_casts()
|
D | issue-9.rs | 15 assert!(SomeEnum::from_u64(1).is_some()); in test_unused_qualifications()
|
/external/rust/crates/protobuf/src/varint/ |
D | decode.rs | 11 fn from_u64(value: u64) -> Self; in from_u64() method 18 fn from_u64(value: u64) -> Self { in from_u64() method 27 fn from_u64(value: u64) -> Self { in from_u64() method 42 return Ok(Some((D::from_u64(r), i + 1))); in decode_varint_full() 47 return Ok(Some((D::from_u64(r), i + 1))); in decode_varint_full() 59 Ok(Some((D::from_u64(ret), consume))) in decode_varint_impl() 64 Ok(Some((D::from_u64(ret), consume))) in decode_varint_impl()
|
/external/rust/crates/serde_json/tests/lexical/ |
D | math.rs | 89 assert_eq!(Bigint::from_u64(0xA).hi64(), (0xA000000000000000, false)); in hi64_test() 90 assert_eq!(Bigint::from_u64(0xAB).hi64(), (0xAB00000000000000, false)); in hi64_test() 92 Bigint::from_u64(0xAB00000000).hi64(), in hi64_test() 96 Bigint::from_u64(0xA23456789A).hi64(), in hi64_test() 140 let mut x = Bigint::from_u64(0x80000000FFFFFFFF); in iadd_small_test() 145 let mut x = Bigint::from_u64(0xFFFFFFFFFFFFFFFF); in iadd_small_test() 160 let mut x = Bigint::from_u64(0x4000000040000); in imul_small_test() 172 let mut x = Bigint::from_u64(0x133333334); in imul_small_test() 177 let mut x = Bigint::from_u64(0x3333333333333334); in imul_small_test()
|
/external/rust/crates/tokio/src/util/ |
D | rand.rs | 63 Self::from_u64(crate::loom::rand::seed()) in new() 81 Self::from_u64(hasher.finish()) 85 fn from_u64(seed: u64) -> Self { in from_u64() method
|
/external/rust/crates/num-traits/src/ |
D | cast.rs | 461 n.to_u64().and_then(FromPrimitive::from_u64) in from_usize() 468 FromPrimitive::from_u64(From::from(n)) in from_u8() 475 FromPrimitive::from_u64(From::from(n)) in from_u16() 482 FromPrimitive::from_u64(From::from(n)) in from_u32() 487 fn from_u64(n: u64) -> Option<Self>; in from_u64() method 499 n.to_u64().and_then(FromPrimitive::from_u64) in from_u128() 519 None => n.to_u64().and_then(FromPrimitive::from_u64), in from_f64() 571 fn from_u64(n: u64) -> Option<$T> { 666 fn from_u64(u64);
|
/external/rust/crates/tracing-core/tests/common/ |
D | mod.rs | 9 span::Id::from_u64(1) in new_span() 23 span::Id::from_u64(1) in new_span()
|
/external/crosvm/bit_field/bit_field_derive/ |
D | bit_field_derive.rs | 118 let from_u64 = quote_spanned! { in bitfield_tuple_struct_impl() localVariable 135 fn from_u64(val: u64) -> Self::GetterType { in bitfield_tuple_struct_impl() 136 Self(#from_u64) in bitfield_tuple_struct_impl() 191 fn from_u64(val: u64) -> Self::GetterType { in bitfield_enum_with_width_impl() 262 fn from_u64(val: u64) -> Self::GetterType { in bitfield_enum_without_width_impl() 499 <#ty as ::bit_field::BitFieldSpecifier>::from_u64(val) in get_fields_impl() 640 fn from_u64(val: u64) -> Self::GetterType { in define_bit_field_specifiers() 753 <BitField1 as ::bit_field::BitFieldSpecifier>::from_u64(val) in end_to_end() 765 <BitField2 as ::bit_field::BitFieldSpecifier>::from_u64(val) in end_to_end() 779 <BitField5 as ::bit_field::BitFieldSpecifier>::from_u64(val) in end_to_end()
|
/external/rust/crates/minimal-lexical/src/ |
D | number.rs | 59 let value = F::from_u64(self.mantissa); in try_fast_path() 77 F::from_u64(mantissa) * unsafe { F::pow_fast_path(max_exponent as _) } in try_fast_path()
|
D | num.rs | 141 fn from_u64(u: u64) -> Self; in from_u64() method 235 fn from_u64(u: u64) -> f32 { in from_u64() method 283 fn from_u64(u: u64) -> f64 { in from_u64() method
|
D | heapvec.rs | 113 pub fn from_u64(x: u64) -> Self { in from_u64() method 114 bigint::from_u64(x) in from_u64()
|
D | stackvec.rs | 221 pub fn from_u64(x: u64) -> Self { in from_u64() method 222 bigint::from_u64(x) in from_u64()
|
D | bigint.rs | 71 pub fn from_u64(value: u64) -> Self { in from_u64() method 73 data: VecType::from_u64(value), in from_u64() 188 pub fn from_u64(x: u64) -> VecType { in from_u64() function
|
/external/crosvm/bit_field/src/ |
D | lib.rs | 317 fn from_u64(val: u64) -> Self::GetterType; in from_u64() method 342 fn from_u64(val: u64) -> Self::GetterType { in from_u64() method
|
/external/rust/crates/tracing/benches/ |
D | shared.rs | 96 Id::from_u64(0xDEAD_FACE) in new_span() 133 Id::from_u64(0xDEAD_FACE) in new_span()
|
/external/rust/crates/tracing/tests/ |
D | register_callsite_deadlock.rs | 23 span::Id::from_u64(1) in register_callsite_doesnt_deadlock()
|
D | subscriber.rs | 37 Id::from_u64(0xAAAA) in event_macros_dont_infinite_loop()
|
/external/rust/crates/tracing-core/src/ |
D | dispatcher.rs | 898 span::Id::from_u64(0xAAAA) in events_dont_infinite_loop() 954 span::Id::from_u64(0xAAAA) in spans_dont_infinite_loop() 987 span::Id::from_u64(0xAAAA) in default_dispatch()
|
/external/rust/crates/num-traits/tests/ |
D | cast.rs | 334 fn from_u64(n: u64) -> Option<Self> { in newtype_from_primitive() method 335 T::from_u64(n).map(New) in newtype_from_primitive() 350 assert_eq_from!(from_u8 from_u16 from_u32 from_u64 from_usize); in newtype_from_primitive()
|
/external/rust/crates/num-bigint/src/bigint/ |
D | convert.rs | 160 fn from_u64(n: u64) -> Option<BigInt> { in from_u64() method 364 impl_to_bigint!(u64, FromPrimitive::from_u64);
|
/external/rust/crates/serde_json/src/lexical/ |
D | bhcomp.rs | 146 let mut theor_digits = Bigint::from_u64(theor.mant); in small_atof()
|