mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-11 23:26:55 +08:00
Updated comments [skip ci]
This commit is contained in:
@@ -218,10 +218,11 @@ SupportsCpuFeature(unsigned int feature)
|
|||||||
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 */
|
/* Check XMM and YMM registers are enabled */
|
||||||
if ((_xgetbv(0) & 6) != 6)
|
if ((_xgetbv(0) & 6) != 6)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
/* Now check features */
|
||||||
return (exx[2] & feature) == feature;
|
return (exx[2] & feature) == feature;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user