Home
last modified time | relevance | path

Searched refs:xcr0 (Results 1 – 6 of 6) sorted by relevance

/f-stack/freebsd/crypto/openssl/
H A Dossl_x86.c56 uint64_t xcr0; in ossl_cpuid() local
102 xcr0 = rxcr(0); in ossl_cpuid()
104 xcr0 = 0; in ossl_cpuid()
106 if ((xcr0 & (XFEATURE_AVX512 | XFEATURE_AVX)) != in ossl_cpuid()
111 if ((xcr0 & XFEATURE_AVX) != XFEATURE_AVX) { in ossl_cpuid()
/f-stack/freebsd/contrib/libsodium/src/libsodium/sodium/
H A Druntime.c151 uint32_t xcr0 = 0U; in _sodium_runtime_intel_cpu_features() local
154 xcr0 = (uint32_t) _xgetbv(0); in _sodium_runtime_intel_cpu_features()
167 mov xcr0, eax in _sodium_runtime_intel_cpu_features()
174 : "=a"(xcr0) in _sodium_runtime_intel_cpu_features()
178 if ((xcr0 & (XCR0_SSE | XCR0_AVX)) == (XCR0_SSE | XCR0_AVX)) { in _sodium_runtime_intel_cpu_features()
/f-stack/freebsd/contrib/openzfs/include/os/freebsd/spl/sys/
H A Dsimd_x86.h78 uint64_t xcr0; in __simd_state_enabled() local
85 xcr0 = xgetbv(0); in __simd_state_enabled()
86 return ((xcr0 & state) == state); in __simd_state_enabled()
/f-stack/freebsd/contrib/openzfs/lib/libspl/include/sys/
H A Dsimd.h215 uint64_t xcr0; in __simd_state_enabled() local
221 xcr0 = xgetbv(0); in __simd_state_enabled()
222 return ((xcr0 & state) == state); in __simd_state_enabled()
/f-stack/freebsd/contrib/openzfs/include/os/linux/kernel/linux/
H A Dsimd_x86.h336 uint64_t xcr0; in __simd_state_enabled() local
346 xcr0 = xgetbv(0); in __simd_state_enabled()
347 return ((xcr0 & state) == state); in __simd_state_enabled()
/f-stack/freebsd/x86/x86/
H A Dcpu_machdep.c1041 u_long xcr0; in hw_mds_recalculate() local
1122 xcr0 = rxcr(0); in hw_mds_recalculate()
1123 if ((xcr0 & XFEATURE_ENABLED_ZMM_HI256) != 0 && in hw_mds_recalculate()
1126 else if ((xcr0 & XFEATURE_ENABLED_AVX) != 0 && in hw_mds_recalculate()