1 2 3 4 5 6 7 8 9 10 11 12
#![allow(dead_code)] pub mod f64 { #[cfg(not(feature = "std"))] pub fn cos(x: f64) -> f64 { unsafe { core::intrinsics::cosf64(x) } } #[cfg(feature = "std")] pub fn cos(x: f64) -> f64 { x.cos() } }