chsvlib
chsv helper source code

◆ get_xcr0

#define get_xcr0 ( )    implementation

Returns the lower 32 bits of the XCR0 register, or zero if the target architecture is neither x86 nor x86-64.

The following helper macro constants are defined.

Macro Value of the bitmask
X86_XCR0_X87_MMX_STATE 0x00000001
X86_XCR0_SSE_STATE 0x00000002
X86_XCR0_AVX_STATE 0x00000004
X86_XCR0_AVX512_KMASK_STATE 0x00000020
X86_XCR0_AVX512_HIZMM16_STATE 0x00000040
X86_XCR0_AVX512_ZMM32_STATE 0x00000080
X86_XCR0_AVX512_STATE 0x000000E0