Home
last modified time | relevance | path

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

12

/third_party/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 …]
Dintegration_tests.rs180 return (F::from_u64(0), bytes); in parse_float()
/third_party/rust/crates/tracing/tracing-subscriber/src/registry/
Dstack.rs62 let id = Id::from_u64(1); in pop_last_span()
71 stack.push(Id::from_u64(1)); in pop_first_span()
72 stack.push(Id::from_u64(2)); in pop_first_span()
74 let id = Id::from_u64(1); in pop_first_span()
/third_party/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);
/third_party/rust/crates/tracing/tracing-core/tests/common/
Dmod.rs9 span::Id::from_u64(1) in new_span()
23 span::Id::from_u64(1) in new_span()
/third_party/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
Dslow.rs137 let mut theor_digits = Bigint::from_u64(theor.mant); in negative_digit_comp()
/third_party/rust/crates/tracing/tracing/benches/
Dshared.rs96 Id::from_u64(0xDEAD_FACE) in new_span()
133 Id::from_u64(0xDEAD_FACE) in new_span()
/third_party/rust/crates/tracing/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()
/third_party/rust/crates/tracing/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()
Dspan.rs69 pub fn from_u64(u: u64) -> Self { in from_u64() method
/third_party/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()
/third_party/rust/crates/tracing/examples/examples/
Dserde-yak-shave.rs33 let id = Id::from_u64(id as u64); in new_span()
Dcounters.rs82 Id::from_u64(id as u64) in new_span()
/third_party/rust/crates/tracing/tracing/test-log-support/tests/
Dlog_with_trace.rs13 tracing::span::Id::from_u64(NEXT.fetch_add(1, Relaxed)) in new_span()
/third_party/rust/crates/tracing/tracing-log/tests/
Dlog_tracer.rs34 span::Id::from_u64(42) in new_span()
/third_party/rust/crates/tracing/tracing/test_static_max_level_features/tests/
Dtest.rs28 span::Id::from_u64(42) in new_span()
/third_party/rust/crates/minimal-lexical/fuzz/fuzz_targets/
Dparse.rs180 return (F::from_u64(0), bytes); in parse_float()
/third_party/rust/crates/tracing/tracing-subscriber/tests/
Dreload.rs25 Id::from_u64(1) in new_span()
/third_party/rust/crates/tracing/examples/examples/sloggish/
Dsloggish_subscriber.rs203 let id = tracing::Id::from_u64(next); in new_span()

12