pub struct ExtendedState { /* private fields */ }Expand description
Extended state of a task, such as FP/SIMD states.
On context switch the state is saved/restored with XSAVE/XRSTOR when the boot
path enabled CR4.OSXSAVE (so that the AVX YMM upper halves are preserved),
and falls back to FXSAVE/FXRSTOR otherwise.
Implementations§
Source§impl ExtendedState
impl ExtendedState
Sourcepub fn fxsave_area(&self) -> &FxsaveArea
Available on crate feature fp-simd only.
pub fn fxsave_area(&self) -> &FxsaveArea
fp-simd only.Provides access to the legacy FXSAVE region for compatibility with code that inspects the x87/SSE state directly.
Sourcepub fn save(&mut self)
Available on crate feature fp-simd only.
pub fn save(&mut self)
fp-simd only.Saves the current extended states from CPU to this structure.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ExtendedState
impl RefUnwindSafe for ExtendedState
impl Send for ExtendedState
impl Sync for ExtendedState
impl Unpin for ExtendedState
impl UnsafeUnpin for ExtendedState
impl UnwindSafe for ExtendedState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more