Struct Scoped Denormal Mode
pub struct ScopedDenormalMode { /* private fields */ }Expand description
Thread-bound RAII scope restoring exact prior control AND sticky status.
Scope-created cumulative exception flags are isolated, not merged into the caller’s observations. Nested scopes restore lexically. Other code on this thread inside the scope observes the selected environment. There is no heap, lock or I/O; x86_64 entry includes up to two bounded 512-byte FXSAVE capability reads when the control changes. Forget, abort and foreign longjmp can prevent restoration. This type cannot be transferred or shared between threads.
fn send<T: Send>() {}
send::<ravet_native_dsp::ScopedDenormalMode>();fn sync<T: Sync>() {}
sync::<ravet_native_dsp::ScopedDenormalMode>();Implementations§
§impl ScopedDenormalMode
impl ScopedDenormalMode
pub fn enter(mode: DenormalMode) -> Result<Self, DenormalError>
pub fn enter(mode: DenormalMode) -> Result<Self, DenormalError>
Refuse unsupported actual environments before changing state. A rejected write/read-back restores the complete prior state before returning Err.