From 6153e173f35a24faf3db8a011ac69e6c4c76a360 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Wed, 17 Apr 2024 18:57:59 -0700 Subject: [PATCH] Updated comments [skip ci] --- src/halfutils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/halfutils.c b/src/halfutils.c index d92ef20..3b9ecdc 100644 --- a/src/halfutils.c +++ b/src/halfutils.c @@ -218,10 +218,11 @@ SupportsCpuFeature(unsigned int feature) if ((exx[2] & CPU_FEATURE_OSXSAVE) != CPU_FEATURE_OSXSAVE) return false; - /* Check YMM registers are enabled */ + /* Check XMM and YMM registers are enabled */ if ((_xgetbv(0) & 6) != 6) return false; + /* Now check features */ return (exx[2] & feature) == feature; } #endif