(
config: Option<FloatingPointExceptionMode>,
)
| 301 | #[inline] |
| 302 | #[doc(alias = "PR_SET_FPEXEC")] |
| 303 | pub fn set_floating_point_exception_mode( |
| 304 | config: Option<FloatingPointExceptionMode>, |
| 305 | ) -> io::Result<()> { |
| 306 | let config = config.as_ref().map_or(0, FloatingPointExceptionMode::bits); |
| 307 | unsafe { prctl_2args(PR_SET_FPEXC, config as usize as *mut _) }.map(|_r| ()) |
| 308 | } |
| 309 | |
| 310 | // |
| 311 | // PR_GET_TIMING/PR_SET_TIMING |
nothing calls this directly
no test coverage detected