Home
last modified time | relevance | path

Searched refs:from_u64 (Results 1 – 25 of 38) sorted by relevance

12

/external/rust/crates/minimal-lexical/tests/
Dvec_tests.rs18 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/
Dwith_custom_values.rs28 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()
Dtrivial.rs25 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()
Dempty_enum.rs20 let v: [Option<Color>; 1] = [num_renamed::FromPrimitive::from_u64(0)]; in test_empty_enum()
Dissue-6.rs14 assert!(SomeEnum::from_u64(1).is_some()); in test_trivial_numeric_casts()
Dissue-9.rs15 assert!(SomeEnum::from_u64(1).is_some()); in test_unused_qualifications()
/external/rust/crates/protobuf/src/varint/
Ddecode.rs11 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/
Dmath.rs89 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/
Drand.rs63 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/
Dcast.rs461 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/
Dmod.rs9 span::Id::from_u64(1) in new_span()
23 span::Id::from_u64(1) in new_span()
/external/crosvm/bit_field/bit_field_derive/
Dbit_field_derive.rs118 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/
Dnumber.rs59 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()
Dnum.rs141 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
Dheapvec.rs113 pub fn from_u64(x: u64) -> Self { in from_u64() method
114 bigint::from_u64(x) in from_u64()
Dstackvec.rs221 pub fn from_u64(x: u64) -> Self { in from_u64() method
222 bigint::from_u64(x) in from_u64()
Dbigint.rs71 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/
Dlib.rs317 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/
Dshared.rs96 Id::from_u64(0xDEAD_FACE) in new_span()
133 Id::from_u64(0xDEAD_FACE) in new_span()
/external/rust/crates/tracing/tests/
Dregister_callsite_deadlock.rs23 span::Id::from_u64(1) in register_callsite_doesnt_deadlock()
Dsubscriber.rs37 Id::from_u64(0xAAAA) in event_macros_dont_infinite_loop()
/external/rust/crates/tracing-core/src/
Ddispatcher.rs898 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/
Dcast.rs334 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/
Dconvert.rs160 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/
Dbhcomp.rs146 let mut theor_digits = Bigint::from_u64(theor.mant); in small_atof()

12