Lines Matching refs:cpu_info
66 static V8_INLINE void __cpuid(int cpu_info[4], int info_type) { in __cpuid()
76 : "=a"(cpu_info[0]), "=D"(cpu_info[1]), "=c"(cpu_info[2]), in __cpuid()
77 "=d"(cpu_info[3]) in __cpuid()
81 : "=a"(cpu_info[0]), "=b"(cpu_info[1]), "=c"(cpu_info[2]), in __cpuid()
82 "=d"(cpu_info[3]) in __cpuid()
460 int cpu_info[4]; in CPU() local
469 __cpuid(cpu_info, 0); in CPU()
470 unsigned num_ids = cpu_info[0]; in CPU()
471 std::swap(cpu_info[2], cpu_info[3]); in CPU()
472 memcpy(vendor_, cpu_info + 1, 12); in CPU()
477 __cpuid(cpu_info, 1); in CPU()
484 stepping_ = cpu_info[0] & 0xF; in CPU()
485 model_ = ((cpu_info[0] >> 4) & 0xF) + ((cpu_info[0] >> 12) & 0xF0); in CPU()
486 family_ = (cpu_info[0] >> 8) & 0xF; in CPU()
487 type_ = (cpu_info[0] >> 12) & 0x3; in CPU()
488 ext_model_ = (cpu_info[0] >> 16) & 0xF; in CPU()
489 ext_family_ = (cpu_info[0] >> 20) & 0xFF; in CPU()
490 has_fpu_ = (cpu_info[3] & 0x00000001) != 0; in CPU()
491 has_cmov_ = (cpu_info[3] & 0x00008000) != 0; in CPU()
492 has_mmx_ = (cpu_info[3] & 0x00800000) != 0; in CPU()
493 has_sse_ = (cpu_info[3] & 0x02000000) != 0; in CPU()
494 has_sse2_ = (cpu_info[3] & 0x04000000) != 0; in CPU()
495 has_sse3_ = (cpu_info[2] & 0x00000001) != 0; in CPU()
496 has_ssse3_ = (cpu_info[2] & 0x00000200) != 0; in CPU()
497 has_sse41_ = (cpu_info[2] & 0x00080000) != 0; in CPU()
498 has_sse42_ = (cpu_info[2] & 0x00100000) != 0; in CPU()
499 has_popcnt_ = (cpu_info[2] & 0x00800000) != 0; in CPU()
500 has_osxsave_ = (cpu_info[2] & 0x08000000) != 0; in CPU()
501 has_avx_ = (cpu_info[2] & 0x10000000) != 0; in CPU()
503 has_fma3_ = (cpu_info[2] & 0x00001000) != 0; in CPU()
512 is_running_in_vm_ = (cpu_info[2] & 0x80000000) != 0; in CPU()
533 __cpuid(cpu_info, 7); in CPU()
534 has_bmi1_ = (cpu_info[1] & 0x00000008) != 0; in CPU()
535 has_bmi2_ = (cpu_info[1] & 0x00000100) != 0; in CPU()
539 __cpuid(cpu_info, 0x80000000); in CPU()
540 unsigned num_ext_ids = cpu_info[0]; in CPU()
544 __cpuid(cpu_info, 0x80000001); in CPU()
545 has_lzcnt_ = (cpu_info[2] & 0x00000020) != 0; in CPU()
547 has_sahf_ = (cpu_info[2] & 0x00000001) != 0; in CPU()
553 __cpuid(cpu_info, parameter_containing_non_stop_time_stamp_counter); in CPU()
554 has_non_stop_time_stamp_counter_ = (cpu_info[3] & (1 << 8)) != 0; in CPU()
559 __cpuid(cpu_info, virtual_physical_address_bits); in CPU()
560 num_virtual_address_bits_ = (cpu_info[0] >> 8) & 0xff; in CPU()
584 CPUInfo cpu_info; in CPU() local
587 char* implementer = cpu_info.ExtractField("CPU implementer"); in CPU()
597 char* variant = cpu_info.ExtractField("CPU variant"); in CPU()
608 char* part = cpu_info.ExtractField("CPU part"); in CPU()
624 char* architecture = cpu_info.ExtractField("CPU architecture"); in CPU()
649 char* processor = cpu_info.ExtractField("Processor"); in CPU()
658 char* processor = cpu_info.ExtractField("model name"); in CPU()
677 char* features = cpu_info.ExtractField("Features"); in CPU()
749 CPUInfo cpu_info; in CPU() local
750 char* cpu_model = cpu_info.ExtractField("cpu model"); in CPU()
752 char* ASEs = cpu_info.ExtractField("ASEs implemented"); in CPU()
783 CPUInfo cpu_info; in CPU() local
784 char* features = cpu_info.ExtractField("Features"); in CPU()
874 CPUInfo cpu_info; in CPU() local
875 char* features = cpu_info.ExtractField("isa"); in CPU()