mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-01 10:11:20 +08:00
Added comments [skip ci]
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user