Lines Matching refs:cpu_info
55 static V8_INLINE void __cpuid(int cpu_info[4], int info_type) { in __cpuid()
65 : "=a"(cpu_info[0]), "=D"(cpu_info[1]), "=c"(cpu_info[2]), in __cpuid()
66 "=d"(cpu_info[3]) in __cpuid()
70 : "=a"(cpu_info[0]), "=b"(cpu_info[1]), "=c"(cpu_info[2]), in __cpuid()
71 "=d"(cpu_info[3]) in __cpuid()
342 int cpu_info[4]; in CPU() local
351 __cpuid(cpu_info, 0); in CPU()
352 unsigned num_ids = cpu_info[0]; in CPU()
353 std::swap(cpu_info[2], cpu_info[3]); in CPU()
354 memcpy(vendor_, cpu_info + 1, 12); in CPU()
359 __cpuid(cpu_info, 1); in CPU()
360 stepping_ = cpu_info[0] & 0xF; in CPU()
361 model_ = ((cpu_info[0] >> 4) & 0xF) + ((cpu_info[0] >> 12) & 0xF0); in CPU()
362 family_ = (cpu_info[0] >> 8) & 0xF; in CPU()
363 type_ = (cpu_info[0] >> 12) & 0x3; in CPU()
364 ext_model_ = (cpu_info[0] >> 16) & 0xF; in CPU()
365 ext_family_ = (cpu_info[0] >> 20) & 0xFF; in CPU()
366 has_fpu_ = (cpu_info[3] & 0x00000001) != 0; in CPU()
367 has_cmov_ = (cpu_info[3] & 0x00008000) != 0; in CPU()
368 has_mmx_ = (cpu_info[3] & 0x00800000) != 0; in CPU()
369 has_sse_ = (cpu_info[3] & 0x02000000) != 0; in CPU()
370 has_sse2_ = (cpu_info[3] & 0x04000000) != 0; in CPU()
371 has_sse3_ = (cpu_info[2] & 0x00000001) != 0; in CPU()
372 has_ssse3_ = (cpu_info[2] & 0x00000200) != 0; in CPU()
373 has_sse41_ = (cpu_info[2] & 0x00080000) != 0; in CPU()
374 has_sse42_ = (cpu_info[2] & 0x00100000) != 0; in CPU()
375 has_popcnt_ = (cpu_info[2] & 0x00800000) != 0; in CPU()
376 has_osxsave_ = (cpu_info[2] & 0x08000000) != 0; in CPU()
377 has_avx_ = (cpu_info[2] & 0x10000000) != 0; in CPU()
378 has_fma3_ = (cpu_info[2] & 0x00001000) != 0; in CPU()
399 __cpuid(cpu_info, 7); in CPU()
400 has_bmi1_ = (cpu_info[1] & 0x00000008) != 0; in CPU()
401 has_bmi2_ = (cpu_info[1] & 0x00000100) != 0; in CPU()
405 __cpuid(cpu_info, 0x80000000); in CPU()
406 unsigned num_ext_ids = cpu_info[0]; in CPU()
410 __cpuid(cpu_info, 0x80000001); in CPU()
411 has_lzcnt_ = (cpu_info[2] & 0x00000020) != 0; in CPU()
413 has_sahf_ = (cpu_info[2] & 0x00000001) != 0; in CPU()
419 __cpuid(cpu_info, parameter_containing_non_stop_time_stamp_counter); in CPU()
420 has_non_stop_time_stamp_counter_ = (cpu_info[3] & (1 << 8)) != 0; in CPU()
427 CPUInfo cpu_info; in CPU() local
430 char* implementer = cpu_info.ExtractField("CPU implementer"); in CPU()
440 char* variant = cpu_info.ExtractField("CPU variant"); in CPU()
451 char* part = cpu_info.ExtractField("CPU part"); in CPU()
467 char* architecture = cpu_info.ExtractField("CPU architecture"); in CPU()
492 char* processor = cpu_info.ExtractField("Processor"); in CPU()
501 char* processor = cpu_info.ExtractField("model name"); in CPU()
520 char* features = cpu_info.ExtractField("Features"); in CPU()
592 CPUInfo cpu_info; in CPU() local
593 char* cpu_model = cpu_info.ExtractField("cpu model"); in CPU()
595 char* ASEs = cpu_info.ExtractField("ASEs implemented"); in CPU()