#![allow(dead_code, deprecated, unused_variables, unused_mut)] #![feature(f128)] fn main() { #[cfg(all(target_arch = "x86_64", target_os = "linux"))] { let value = f128::from_ne_bytes( if cfg!(target_endian = "big") { [ 0x40, 0x02, 0x90, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, ] } else { [ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x90, 0x02, 0x40, ] }, ); assert_eq!(value, 12.5); } }