• Home
  • Raw
  • Download

Lines Matching refs:regs2

580       uint32_t regs2[4];  in util_cpu_detect_once()  local
590 cpuid (0x00000001, regs2); in util_cpu_detect_once()
592 util_cpu_caps.x86_cpu_type = (regs2[0] >> 8) & 0xf; in util_cpu_detect_once()
595 util_cpu_caps.x86_cpu_type += ((regs2[0] >> 20) & 0xff); in util_cpu_detect_once()
610 util_cpu_caps.has_tsc = (regs2[3] >> 4) & 1; /* 0x0000010 */ in util_cpu_detect_once()
611 util_cpu_caps.has_mmx = (regs2[3] >> 23) & 1; /* 0x0800000 */ in util_cpu_detect_once()
612 util_cpu_caps.has_sse = (regs2[3] >> 25) & 1; /* 0x2000000 */ in util_cpu_detect_once()
613 util_cpu_caps.has_sse2 = (regs2[3] >> 26) & 1; /* 0x4000000 */ in util_cpu_detect_once()
614 util_cpu_caps.has_sse3 = (regs2[2] >> 0) & 1; /* 0x0000001 */ in util_cpu_detect_once()
615 util_cpu_caps.has_ssse3 = (regs2[2] >> 9) & 1; /* 0x0000020 */ in util_cpu_detect_once()
616 util_cpu_caps.has_sse4_1 = (regs2[2] >> 19) & 1; in util_cpu_detect_once()
617 util_cpu_caps.has_sse4_2 = (regs2[2] >> 20) & 1; in util_cpu_detect_once()
618 util_cpu_caps.has_popcnt = (regs2[2] >> 23) & 1; in util_cpu_detect_once()
619 util_cpu_caps.has_avx = ((regs2[2] >> 28) & 1) && // AVX in util_cpu_detect_once()
620 ((regs2[2] >> 27) & 1) && // OSXSAVE in util_cpu_detect_once()
622 util_cpu_caps.has_f16c = ((regs2[2] >> 29) & 1) && util_cpu_caps.has_avx; in util_cpu_detect_once()
623 util_cpu_caps.has_fma = ((regs2[2] >> 12) & 1) && util_cpu_caps.has_avx; in util_cpu_detect_once()
632 cacheline = ((regs2[1] >> 8) & 0xFF) * 8; in util_cpu_detect_once()
643 if (((regs2[2] >> 27) & 1) && // OSXSAVE in util_cpu_detect_once()
668 cpuid(0x80000001, regs2); in util_cpu_detect_once()
670 util_cpu_caps.has_mmx |= (regs2[3] >> 23) & 1; in util_cpu_detect_once()
671 util_cpu_caps.has_mmx2 |= (regs2[3] >> 22) & 1; in util_cpu_detect_once()
672 util_cpu_caps.has_3dnow = (regs2[3] >> 31) & 1; in util_cpu_detect_once()
673 util_cpu_caps.has_3dnow_ext = (regs2[3] >> 30) & 1; in util_cpu_detect_once()
676 ((regs2[2] >> 11) & 1); in util_cpu_detect_once()
682 cpuid(0x80000006, regs2); in util_cpu_detect_once()
683 cacheline = regs2[2] & 0xFF; in util_cpu_detect_once()