pgvector.git / summary / log / commit / refs

commit    6153e173f35a24faf3db8a011ac69e6c4c76a360
Author:   Andrew Kane <andrew@ankane.org>
Date:     Thu Apr 18 01:57:59 2024 +0000

    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 d92ef200..3b9ecdce 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 [parent: eb48b9eec412]