Lines Matching refs:HasAVX
243 bool HasAVX = ((ECX & AVXBits) == AVXBits) && !GetX86XCR0(&EAX, &EDX) && in getHostCPUName() local
245 bool HasAVX512Save = HasAVX && ((EAX & 0xe0) == 0xe0); in getHostCPUName()
249 bool HasAVX2 = HasAVX && HasLeaf7 && (EBX & 0x20); in getHostCPUName()
393 if (HasAVX) in getHostCPUName()
484 if (!HasAVX) // If the OS doesn't support AVX provide a sane fallback. in getHostCPUName()
494 if (!HasAVX) // If the OS doesn't support AVX provide a sane fallback. in getHostCPUName()
745 bool HasAVX = ((ECX >> 27) & 1) && ((ECX >> 28) & 1) && in getHostCPUFeatures() local
747 Features["avx"] = HasAVX; in getHostCPUFeatures()
748 Features["fma"] = HasAVX && (ECX >> 12) & 1; in getHostCPUFeatures()
749 Features["f16c"] = HasAVX && (ECX >> 29) & 1; in getHostCPUFeatures()
752 bool HasAVX512Save = HasAVX && ((EAX & 0xe0) == 0xe0); in getHostCPUFeatures()
762 Features["xop"] = HasAVX && HasExtLeaf1 && ((ECX >> 11) & 1); in getHostCPUFeatures()
763 Features["fma4"] = HasAVX && HasExtLeaf1 && ((ECX >> 16) & 1); in getHostCPUFeatures()
770 Features["avx2"] = HasAVX && HasLeaf7 && (EBX >> 5) & 1; in getHostCPUFeatures()