core::arch::x86_64

Function _xsetbv

1.27.0 · source
pub unsafe fn _xsetbv(a: u32, val: u64)
Available on (x86 or x86-64) and target feature xsave and x86-64 only.
Expand description

Copies 64-bits from val to the extended control register (XCR) specified by a.

Currently only XFEATURE_ENABLED_MASK XCR is supported.

Intel’s documentation