Lines Matching refs:ECX
216 unsigned EAX = 0, EBX = 0, ECX = 0, EDX = 0; in getHostCPUName() local
217 if (GetX86CpuIDAndInfo(0x1, &EAX, &EBX, &ECX, &EDX)) in getHostCPUName()
234 bool HasSSE3 = (ECX >> 0) & 1; in getHostCPUName()
235 bool HasSSSE3 = (ECX >> 9) & 1; in getHostCPUName()
236 bool HasSSE41 = (ECX >> 19) & 1; in getHostCPUName()
237 bool HasSSE42 = (ECX >> 20) & 1; in getHostCPUName()
238 bool HasMOVBE = (ECX >> 22) & 1; in getHostCPUName()
243 bool HasAVX = ((ECX & AVXBits) == AVXBits) && !GetX86XCR0(&EAX, &EDX) && in getHostCPUName()
247 !GetX86CpuIDAndInfoEx(0x7, 0x0, &EAX, &EBX, &ECX, &EDX); in getHostCPUName()
252 GetX86CpuIDAndInfo(0x80000001, &EAX, &EBX, &ECX, &EDX); in getHostCPUName()
254 bool HasTBM = (ECX >> 21) & 0x1; in getHostCPUName()
713 unsigned EAX = 0, EBX = 0, ECX = 0, EDX = 0; in getHostCPUFeatures() local
724 GetX86CpuIDAndInfo(1, &EAX, &EBX, &ECX, &EDX); in getHostCPUFeatures()
730 Features["sse3"] = (ECX >> 0) & 1; in getHostCPUFeatures()
731 Features["ssse3"] = (ECX >> 9) & 1; in getHostCPUFeatures()
732 Features["sse4.1"] = (ECX >> 19) & 1; in getHostCPUFeatures()
733 Features["sse4.2"] = (ECX >> 20) & 1; in getHostCPUFeatures()
735 Features["pclmul"] = (ECX >> 1) & 1; in getHostCPUFeatures()
736 Features["cx16"] = (ECX >> 13) & 1; in getHostCPUFeatures()
737 Features["movbe"] = (ECX >> 22) & 1; in getHostCPUFeatures()
738 Features["popcnt"] = (ECX >> 23) & 1; in getHostCPUFeatures()
739 Features["aes"] = (ECX >> 25) & 1; in getHostCPUFeatures()
740 Features["rdrnd"] = (ECX >> 30) & 1; in getHostCPUFeatures()
745 bool HasAVX = ((ECX >> 27) & 1) && ((ECX >> 28) & 1) && in getHostCPUFeatures()
748 Features["fma"] = HasAVX && (ECX >> 12) & 1; in getHostCPUFeatures()
749 Features["f16c"] = HasAVX && (ECX >> 29) & 1; in getHostCPUFeatures()
755 GetX86CpuIDAndInfo(0x80000000, &MaxExtLevel, &EBX, &ECX, &EDX); in getHostCPUFeatures()
758 !GetX86CpuIDAndInfo(0x80000001, &EAX, &EBX, &ECX, &EDX); in getHostCPUFeatures()
759 Features["lzcnt"] = HasExtLeaf1 && ((ECX >> 5) & 1); in getHostCPUFeatures()
760 Features["sse4a"] = HasExtLeaf1 && ((ECX >> 6) & 1); in getHostCPUFeatures()
761 Features["prfchw"] = HasExtLeaf1 && ((ECX >> 8) & 1); in getHostCPUFeatures()
762 Features["xop"] = HasAVX && HasExtLeaf1 && ((ECX >> 11) & 1); in getHostCPUFeatures()
763 Features["fma4"] = HasAVX && HasExtLeaf1 && ((ECX >> 16) & 1); in getHostCPUFeatures()
764 Features["tbm"] = HasExtLeaf1 && ((ECX >> 21) & 1); in getHostCPUFeatures()
767 !GetX86CpuIDAndInfoEx(0x7, 0x0, &EAX, &EBX, &ECX, &EDX); in getHostCPUFeatures()