From eb48b9eec4129509e16fbe89e59378e9385e4948 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Wed, 17 Apr 2024 18:53:58 -0700 Subject: [PATCH] Added comments [skip ci] --- src/halfutils.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/halfutils.c b/src/halfutils.c index 918294f..d92ef20 100644 --- a/src/halfutils.c +++ b/src/halfutils.c @@ -214,9 +214,11 @@ SupportsCpuFeature(unsigned int feature) __cpuid(exx, 1); #endif + /* Check OS supports XSAVE */ if ((exx[2] & CPU_FEATURE_OSXSAVE) != CPU_FEATURE_OSXSAVE) return false; + /* Check YMM registers are enabled */ if ((_xgetbv(0) & 6) != 6) return false;