• Home
  • Raw
  • Download

Lines Matching refs:cpu_info

51 void CpuId(uint32 info_eax, uint32 info_ecx, uint32* cpu_info) {  in CpuId()  argument
55 __cpuidex((int*)(cpu_info), info_eax, info_ecx); in CpuId()
60 mov edi, cpu_info in CpuId()
69 __cpuid((int*)(cpu_info), info_eax); in CpuId()
71 cpu_info[3] = cpu_info[2] = cpu_info[1] = cpu_info[0] = 0u; in CpuId()
89 cpu_info[0] = info_eax; in CpuId()
90 cpu_info[1] = info_ebx; in CpuId()
91 cpu_info[2] = info_ecx; in CpuId()
92 cpu_info[3] = info_edx; in CpuId()
97 void CpuId(uint32 eax, uint32 ecx, uint32* cpu_info) {
100 cpu_info[0] = cpu_info[1] = cpu_info[2] = cpu_info[3] = 0;
219 int cpu_info = 0; in InitCpuFlags() local
229 cpu_info = kCpuHasX86 | ((cpu_info1[3] & 0x04000000) ? kCpuHasSSE2 : 0) | in InitCpuFlags()
238 cpu_info |= kCpuHasAVX | ((cpu_info7[1] & 0x00000020) ? kCpuHasAVX2 : 0) | in InitCpuFlags()
244 cpu_info |= (cpu_info7[1] & 0x40000000) ? kCpuHasAVX3 : 0; in InitCpuFlags()
250 cpu_info &= ~kCpuHasX86; in InitCpuFlags()
253 cpu_info &= ~kCpuHasSSE2; in InitCpuFlags()
256 cpu_info &= ~kCpuHasSSSE3; in InitCpuFlags()
259 cpu_info &= ~kCpuHasSSE41; in InitCpuFlags()
262 cpu_info &= ~kCpuHasSSE42; in InitCpuFlags()
265 cpu_info &= ~kCpuHasAVX; in InitCpuFlags()
268 cpu_info &= ~kCpuHasAVX2; in InitCpuFlags()
271 cpu_info &= ~kCpuHasERMS; in InitCpuFlags()
274 cpu_info &= ~kCpuHasFMA3; in InitCpuFlags()
277 cpu_info &= ~kCpuHasAVX3; in InitCpuFlags()
280 cpu_info &= ~kCpuHasF16C; in InitCpuFlags()
286 cpu_info |= kCpuHasDSPR2; in InitCpuFlags()
289 cpu_info = MipsCpuCaps("/proc/cpuinfo", " msa"); in InitCpuFlags()
291 cpu_info |= kCpuHasMIPS; in InitCpuFlags()
293 cpu_info &= ~kCpuHasDSPR2; in InitCpuFlags()
296 cpu_info &= ~kCpuHasMSA; in InitCpuFlags()
304 cpu_info = kCpuHasNEON; in InitCpuFlags()
310 cpu_info = kCpuHasNEON; in InitCpuFlags()
313 cpu_info = ArmCpuCaps("/proc/cpuinfo"); in InitCpuFlags()
315 cpu_info |= kCpuHasARM; in InitCpuFlags()
317 cpu_info &= ~kCpuHasNEON; in InitCpuFlags()
321 cpu_info = 0; in InitCpuFlags()
323 cpu_info |= kCpuInitialized; in InitCpuFlags()
324 cpu_info_ = cpu_info; in InitCpuFlags()
325 return cpu_info; in InitCpuFlags()