Home
last modified time | relevance | path

Searched refs:from_bits (Results 1 – 21 of 21) sorted by relevance

/third_party/rust/crates/minimal-lexical/src/
Dlibm.rs235 t1 = f32::from_bits(is as u32 & 0xfffff000); in powf()
266 ax = f32::from_bits(ix as u32); in powf()
274 s_h = f32::from_bits(is as u32 & 0xfffff000); in powf()
277 t_h = f32::from_bits(is as u32 + 0x00400000 + ((k as u32) << 21)); in powf()
287 t_h = f32::from_bits(is as u32 & 0xfffff000); in powf()
295 p_h = f32::from_bits(is as u32 & 0xfffff000); in powf()
303 t1 = f32::from_bits(is as u32 & 0xfffff000); in powf()
309 y1 = f32::from_bits(is as u32 & 0xfffff000); in powf()
343 t = f32::from_bits(n as u32 & !(0x007fffff >> k)); in powf()
352 t = f32::from_bits(is as u32 & 0xffff8000); in powf()
[all …]
Dnum.rs144 fn from_bits(u: u64) -> Self; in from_bits() method
240 fn from_bits(u: u64) -> f32 { in from_bits() method
243 f32::from_bits(u as u32) in from_bits()
288 fn from_bits(u: u64) -> f64 { in from_bits() method
289 f64::from_bits(u) in from_bits()
Dextended_float.rs23 F::from_bits(word) in extended_to_float()
/third_party/rust/crates/minimal-lexical/fuzz/fuzz_targets/
Dparse.rs141 let mut float = F::from_bits(F::EXPONENT_MASK | (F::HIDDEN_BIT_MASK >> 1)); in parse_float()
147 let mut float = F::from_bits(F::EXPONENT_MASK); in parse_float()
153 let mut float = F::from_bits(F::EXPONENT_MASK); in parse_float()
/third_party/rust/crates/minimal-lexical/tests/
Dintegration_tests.rs141 let mut float = F::from_bits(F::EXPONENT_MASK | (F::HIDDEN_BIT_MASK >> 1)); in parse_float()
147 let mut float = F::from_bits(F::EXPONENT_MASK); in parse_float()
153 let mut float = F::from_bits(F::EXPONENT_MASK); in parse_float()
/third_party/rust/crates/nix/src/
Dpoll.rs37 PollFlags::from_bits(self.pollfd.revents) in revents()
62 PollFlags::from_bits(self.pollfd.events).unwrap() in events()
/third_party/rust/crates/bitflags/src/
Dlib.rs552 pub const fn from_bits(bits: $T) -> $crate::_core::option::Option<Self> {
996 assert_eq!(Flags::from_bits(0), Some(Flags::empty())); in test_from_bits()
997 assert_eq!(Flags::from_bits(0b1), Some(Flags::A)); in test_from_bits()
998 assert_eq!(Flags::from_bits(0b10), Some(Flags::B)); in test_from_bits()
999 assert_eq!(Flags::from_bits(0b11), Some(Flags::A | Flags::B)); in test_from_bits()
1000 assert_eq!(Flags::from_bits(0b1000), None); in test_from_bits()
1003 AnotherSetOfFlags::from_bits(!0_i8), in test_from_bits()
1007 assert_eq!(EmptyFlags::from_bits(0), Some(EmptyFlags::empty())); in test_from_bits()
1008 assert_eq!(EmptyFlags::from_bits(0b1), None); in test_from_bits()
/third_party/rust/crates/rustix/src/process/
Dprctl.rs191 UnalignedAccessControl::from_bits(r).ok_or(io::Errno::RANGE) in unaligned_access_control()
232 FloatingPointEmulationControl::from_bits(r).ok_or(io::Errno::RANGE) in floating_point_emulation_control()
290 .map(FloatingPointExceptionMode::from_bits) in floating_point_exception_mode()
965 Ok(SpeculationFeatureState::from_bits(r)) in speculative_feature_state()
1048 PointerAuthenticationKeys::from_bits(r).ok_or(io::Errno::RANGE) in enabled_pointer_authentication_keys()
/third_party/rust/crates/minimal-lexical/etc/correctness/rng-tests/
Df32.rs11 let input = f32::from_bits(i as u32); in main()
Dsmoke.rs19 let input = f64::from_bits(rng.next_u64()); in main()
/third_party/rust/crates/rustix/src/backend/linux_raw/io/
Dpoll_fd.rs84 PollFlags::from_bits(self.revents).unwrap() in revents()
/third_party/rust/crates/nix/src/sys/
Devent.rs254 EventFlag::from_bits(self.kevent.flags).unwrap() in flags()
258 FilterFlag::from_bits(self.kevent.fflags).unwrap() in fflags()
Depoll.rs65 EpollFlags::from_bits(self.event.events as c_int).unwrap() in events()
Dstat.rs236 Mode::from_bits(prev).expect("[BUG] umask returned invalid Mode") in umask()
/third_party/rust/crates/rustix/src/backend/libc/io/
Dpoll_fd.rs114 PollFlags::from_bits(self.pollfd.revents).unwrap() in revents()
/third_party/rust/crates/rustix/src/thread/
Dprctl.rs451 CapabilitiesSecureBits::from_bits(r).ok_or(io::Errno::RANGE) in capabilities_secure_bits()
761 Ok((TaggedAddressMode::from_bits(mode), mte_tag)) in current_tagged_address_mode()
/third_party/rust/crates/nom/src/number/
Dcomplete.rs1168 Ok((i, o)) => Ok((i, f32::from_bits(o))), in be_f32()
1194 Ok((i, o)) => Ok((i, f64::from_bits(o))), in be_f64()
1220 Ok((i, o)) => Ok((i, f32::from_bits(o))), in le_f32()
1246 Ok((i, o)) => Ok((i, f64::from_bits(o))), in le_f64()
Dstreaming.rs1141 Ok((i, o)) => Ok((i, f32::from_bits(o))), in be_f32()
1166 Ok((i, o)) => Ok((i, f64::from_bits(o))), in be_f64()
1191 Ok((i, o)) => Ok((i, f32::from_bits(o))), in le_f32()
1216 Ok((i, o)) => Ok((i, f64::from_bits(o))), in le_f64()
/third_party/rust/crates/minimal-lexical/etc/correctness/test-parse-unittests/
Dto_toml.py51 def from_bits(cls, value): member in FloatMixin
/third_party/rust/crates/bitflags/
DCHANGELOG.md29 - Make `from_bits` a const fn ([#229])
/third_party/rust/crates/rust-openssl/openssl/src/ssl/
Dmod.rs1891 SslVerifyMode::from_bits(mode).expect("SSL_CTX_get_verify_mode returned invalid mode") in verify_mode()
2332 SslVerifyMode::from_bits(mode).expect("SSL_get_verify_mode returned invalid mode") in verify_mode()