Lines Matching refs:ECX
570 static void getAvailableFeatures(unsigned ECX, unsigned EDX, unsigned MaxLeaf, in getAvailableFeatures() argument
586 if ((ECX >> 0) & 1) in getAvailableFeatures()
588 if ((ECX >> 1) & 1) in getAvailableFeatures()
590 if ((ECX >> 9) & 1) in getAvailableFeatures()
592 if ((ECX >> 12) & 1) in getAvailableFeatures()
594 if ((ECX >> 19) & 1) in getAvailableFeatures()
596 if ((ECX >> 20) & 1) in getAvailableFeatures()
598 if ((ECX >> 23) & 1) in getAvailableFeatures()
600 if ((ECX >> 25) & 1) in getAvailableFeatures()
607 bool HasAVX = ((ECX & AVXBits) == AVXBits) && !getX86XCR0(&EAX, &EDX) && in getAvailableFeatures()
623 MaxLeaf >= 0x7 && !getX86CpuIDAndInfoEx(0x7, 0x0, &EAX, &EBX, &ECX, &EDX); in getAvailableFeatures()
648 if (HasLeaf7 && ((ECX >> 1) & 1) && HasAVX512Save) in getAvailableFeatures()
650 if (HasLeaf7 && ((ECX >> 6) & 1) && HasAVX512Save) in getAvailableFeatures()
652 if (HasLeaf7 && ((ECX >> 8) & 1)) in getAvailableFeatures()
654 if (HasLeaf7 && ((ECX >> 10) & 1) && HasAVX) in getAvailableFeatures()
656 if (HasLeaf7 && ((ECX >> 11) & 1) && HasAVX512Save) in getAvailableFeatures()
658 if (HasLeaf7 && ((ECX >> 12) & 1) && HasAVX512Save) in getAvailableFeatures()
660 if (HasLeaf7 && ((ECX >> 14) & 1) && HasAVX512Save) in getAvailableFeatures()
671 MaxLeaf >= 0x7 && !getX86CpuIDAndInfoEx(0x7, 0x1, &EAX, &EBX, &ECX, &EDX); in getAvailableFeatures()
676 getX86CpuIDAndInfo(0x80000000, &MaxExtLevel, &EBX, &ECX, &EDX); in getAvailableFeatures()
679 !getX86CpuIDAndInfo(0x80000001, &EAX, &EBX, &ECX, &EDX); in getAvailableFeatures()
680 if (HasExtLeaf1 && ((ECX >> 6) & 1)) in getAvailableFeatures()
682 if (HasExtLeaf1 && ((ECX >> 11) & 1)) in getAvailableFeatures()
684 if (HasExtLeaf1 && ((ECX >> 16) & 1)) in getAvailableFeatures()
716 unsigned EAX, EBX, ECX, EDX; in __cpu_indicator_init() local
727 getX86CpuIDAndInfo(0, &MaxLeaf, &Vendor, &ECX, &EDX) || MaxLeaf < 1) { in __cpu_indicator_init()
732 getX86CpuIDAndInfo(1, &EAX, &EBX, &ECX, &EDX); in __cpu_indicator_init()
736 getAvailableFeatures(ECX, EDX, MaxLeaf, &Features[0]); in __cpu_indicator_init()