Lines Matching refs:cpu_info
49 void CpuId(int info_eax, int info_ecx, int* cpu_info) { in CpuId() argument
53 __cpuidex(cpu_info, info_eax, info_ecx); in CpuId()
58 mov edi, cpu_info in CpuId()
67 __cpuid(cpu_info, info_eax); in CpuId()
69 cpu_info[3] = cpu_info[2] = cpu_info[1] = cpu_info[0] = 0u; in CpuId()
87 cpu_info[0] = info_eax; in CpuId()
88 cpu_info[1] = info_ebx; in CpuId()
89 cpu_info[2] = info_ecx; in CpuId()
90 cpu_info[3] = info_edx; in CpuId()
95 void CpuId(int eax, int ecx, int* cpu_info) { in CpuId() argument
98 cpu_info[0] = cpu_info[1] = cpu_info[2] = cpu_info[3] = 0; in CpuId()
216 int cpu_info = 0; in GetCpuFlags() local
228 cpu_info = kCpuHasX86 | ((cpu_info1[3] & 0x04000000) ? kCpuHasSSE2 : 0) | in GetCpuFlags()
237 cpu_info |= kCpuHasAVX | ((cpu_info7[1] & 0x00000020) ? kCpuHasAVX2 : 0) | in GetCpuFlags()
243 cpu_info |= (cpu_info7[1] & 0x40000000) ? kCpuHasAVX512BW : 0; in GetCpuFlags()
244 cpu_info |= (cpu_info7[1] & 0x80000000) ? kCpuHasAVX512VL : 0; in GetCpuFlags()
245 cpu_info |= (cpu_info7[2] & 0x00000002) ? kCpuHasAVX512VBMI : 0; in GetCpuFlags()
246 cpu_info |= (cpu_info7[2] & 0x00000040) ? kCpuHasAVX512VBMI2 : 0; in GetCpuFlags()
247 cpu_info |= (cpu_info7[2] & 0x00000800) ? kCpuHasAVX512VNNI : 0; in GetCpuFlags()
248 cpu_info |= (cpu_info7[2] & 0x00001000) ? kCpuHasAVX512VBITALG : 0; in GetCpuFlags()
249 cpu_info |= (cpu_info7[2] & 0x00004000) ? kCpuHasAVX512VPOPCNTDQ : 0; in GetCpuFlags()
250 cpu_info |= (cpu_info7[2] & 0x00000100) ? kCpuHasGFNI : 0; in GetCpuFlags()
255 cpu_info = MipsCpuCaps("/proc/cpuinfo"); in GetCpuFlags()
256 cpu_info |= kCpuHasMIPS; in GetCpuFlags()
259 cpu_info = LoongarchCpuCaps(); in GetCpuFlags()
260 cpu_info |= kCpuHasLOONGARCH; in GetCpuFlags()
267 cpu_info = kCpuHasNEON; in GetCpuFlags()
273 cpu_info = kCpuHasNEON; in GetCpuFlags()
276 cpu_info = ArmCpuCaps("/proc/cpuinfo"); in GetCpuFlags()
278 cpu_info |= kCpuHasARM; in GetCpuFlags()
280 cpu_info |= kCpuInitialized; in GetCpuFlags()
281 return cpu_info; in GetCpuFlags()
287 int cpu_info = GetCpuFlags() & enable_flags; in MaskCpuFlags() local
288 SetCpuFlags(cpu_info); in MaskCpuFlags()
289 return cpu_info; in MaskCpuFlags()