#![allow(dead_code, deprecated, unused_variables, unused_mut)] #![feature(f128)] fn main() { let bytes = 12.5f128.to_ne_bytes(); assert_eq!( 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] } ); }