mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-12 15:46:54 +08:00
Added comments [skip ci]
This commit is contained in:
@@ -214,9 +214,11 @@ SupportsCpuFeature(unsigned int feature)
|
|||||||
__cpuid(exx, 1);
|
__cpuid(exx, 1);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Check OS supports XSAVE */
|
||||||
if ((exx[2] & CPU_FEATURE_OSXSAVE) != CPU_FEATURE_OSXSAVE)
|
if ((exx[2] & CPU_FEATURE_OSXSAVE) != CPU_FEATURE_OSXSAVE)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
/* Check YMM registers are enabled */
|
||||||
if ((_xgetbv(0) & 6) != 6)
|
if ((_xgetbv(0) & 6) != 6)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user