MCPcopy Create free account
hub / github.com/bytecodealliance/rustix / set_floating_point_exception_mode

Function set_floating_point_exception_mode

src/process/prctl.rs:303–308  ·  view source on GitHub ↗
(
    config: Option<FloatingPointExceptionMode>,
)

Source from the content-addressed store, hash-verified

301#[inline]
302#[doc(alias = "PR_SET_FPEXEC")]
303pub 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

Callers

nothing calls this directly

Calls 2

prctl_2argsFunction · 0.85
as_refMethod · 0.45

Tested by

no test coverage detected