Home
last modified time | relevance | path

Searched refs:cpu_info (Results 1 – 25 of 33) sorted by relevance

12

/external/libchrome/base/
Dcpu.cc61 void __cpuid(int cpu_info[4], int info_type) { in __cpuid()
66 : "=a"(cpu_info[0]), "=D"(cpu_info[1]), "=c"(cpu_info[2]), "=d"(cpu_info[3]) in __cpuid()
73 void __cpuid(int cpu_info[4], int info_type) {
76 : "=a"(cpu_info[0]), "=b"(cpu_info[1]), "=c"(cpu_info[2]), "=d"(cpu_info[3])
143 int cpu_info[4] = {-1}; in Initialize() local
153 __cpuid(cpu_info, 0); in Initialize()
154 int num_ids = cpu_info[0]; in Initialize()
155 std::swap(cpu_info[2], cpu_info[3]); in Initialize()
156 memcpy(cpu_string, &cpu_info[1], 3 * sizeof(cpu_info[1])); in Initialize()
157 cpu_vendor_.assign(cpu_string, 3 * sizeof(cpu_info[1])); in Initialize()
[all …]
/external/libvpx/libvpx/third_party/libyuv/source/
Dcpu_id.cc51 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] = 0; 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) {
[all …]
/external/libyuv/files/source/
Dcpu_id.cc51 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) {
[all …]
/external/v8/src/base/
Dcpu.cc55 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()
346 int cpu_info[4]; in CPU() local
355 __cpuid(cpu_info, 0); in CPU()
356 unsigned num_ids = cpu_info[0]; in CPU()
357 std::swap(cpu_info[2], cpu_info[3]); in CPU()
358 memcpy(vendor_, cpu_info + 1, 12); in CPU()
[all …]
/external/webp/src/dsp/
Dcpu.c31 static WEBP_INLINE void GetCPUInfo(int cpu_info[4], int info_type) { in GetCPUInfo()
36 : "=a"(cpu_info[0]), "=D"(cpu_info[1]), "=c"(cpu_info[2]), "=d"(cpu_info[3]) in GetCPUInfo()
42 static WEBP_INLINE void GetCPUInfo(int cpu_info[4], int info_type) { in GetCPUInfo()
47 : "=a"(cpu_info[0]), "=&r"(cpu_info[1]), "=c"(cpu_info[2]), in GetCPUInfo()
48 "=d"(cpu_info[3]) in GetCPUInfo()
52 static WEBP_INLINE void GetCPUInfo(int cpu_info[4], int info_type) { in GetCPUInfo()
55 : "=a"(cpu_info[0]), "=b"(cpu_info[1]), "=c"(cpu_info[2]), "=d"(cpu_info[3]) in GetCPUInfo()
121 int cpu_info[4]; in x86CPUInfo() local
125 GetCPUInfo(cpu_info, 0); in x86CPUInfo()
126 max_cpuid_value = cpu_info[0]; in x86CPUInfo()
[all …]
/external/webrtc/webrtc/system_wrappers/source/
Dcpu_features.cc31 static inline void __cpuid(int cpu_info[4], int info_type) { in __cpuid()
36 : "=a"(cpu_info[0]), "=D"(cpu_info[1]), "=c"(cpu_info[2]), "=d"(cpu_info[3]) in __cpuid()
40 static inline void __cpuid(int cpu_info[4], int info_type) { in __cpuid()
43 : "=a"(cpu_info[0]), "=b"(cpu_info[1]), "=c"(cpu_info[2]), "=d"(cpu_info[3]) in __cpuid()
53 int cpu_info[4]; in GetCPUInfo() local
54 __cpuid(cpu_info, 1); in GetCPUInfo()
56 return 0 != (cpu_info[3] & 0x04000000); in GetCPUInfo()
59 return 0 != (cpu_info[2] & 0x00000001); in GetCPUInfo()
DAndroid.mk27 cpu_info.cc \
/external/libyuv/files/unit_test/
Dcpu_test.cc86 uint32 cpu_info[4]; in TEST_F() local
98 CpuId(0, 0, cpu_info); in TEST_F()
99 cpu_info[0] = cpu_info[1]; // Reorder output in TEST_F()
100 cpu_info[1] = cpu_info[3]; in TEST_F()
101 cpu_info[3] = 0; in TEST_F()
102 printf("Cpu Vendor: %s %x %x %x\n", reinterpret_cast<char*>(&cpu_info[0]), in TEST_F()
103 cpu_info[0], cpu_info[1], cpu_info[2]); in TEST_F()
104 EXPECT_EQ(12u, strlen(reinterpret_cast<char*>(&cpu_info[0]))); in TEST_F()
113 CpuId(1, 0, cpu_info); in TEST_F()
114 int family = ((cpu_info[0] >> 8) & 0x0f) | ((cpu_info[0] >> 16) & 0xff0); in TEST_F()
[all …]
Dunit_test.cc86 const char* cpu_info = getenv("LIBYUV_CPU_INFO"); in LibYUVConvertTest() local
87 if (cpu_info) { in LibYUVConvertTest()
145 const char* cpu_info = getenv("LIBYUV_CPU_INFO"); in LibYUVColorTest() local
146 if (cpu_info) { in LibYUVColorTest()
204 const char* cpu_info = getenv("LIBYUV_CPU_INFO"); in LibYUVScaleTest() local
205 if (cpu_info) { in LibYUVScaleTest()
263 const char* cpu_info = getenv("LIBYUV_CPU_INFO"); in LibYUVRotateTest() local
264 if (cpu_info) { in LibYUVRotateTest()
322 const char* cpu_info = getenv("LIBYUV_CPU_INFO"); in LibYUVPlanarTest() local
323 if (cpu_info) { in LibYUVPlanarTest()
[all …]
/external/webrtc/webrtc/base/
Dsysteminfo.cc41 static inline void __cpuid(int cpu_info[4], int info_type) { in __cpuid()
46 : "=a"(cpu_info[0]), "=D"(cpu_info[1]), "=c"(cpu_info[2]), "=d"(cpu_info[3]) in __cpuid()
51 static inline void __cpuid(int cpu_info[4], int info_type) {
54 : "=a"(cpu_info[0]), "=b"(cpu_info[1]), "=c"(cpu_info[2]), "=d"(cpu_info[3])
148 int cpu_info[4]; in GetCpuVendor() local
149 __cpuid(cpu_info, 0); in GetCpuVendor()
150 cpu_info[0] = cpu_info[1]; // Reorder output in GetCpuVendor()
151 cpu_info[1] = cpu_info[3]; in GetCpuVendor()
153 cpu_info[3] = 0; in GetCpuVendor()
154 return std::string(reinterpret_cast<char*>(&cpu_info[0])); in GetCpuVendor()
/external/libyuv/files/util/
Dcpuid.c28 uint32 family, model, cpu_info[4]; in main() local
40 CpuId(0, 0, &cpu_info[0]); in main()
41 cpu_info[0] = cpu_info[1]; // Reorder output in main()
42 cpu_info[1] = cpu_info[3]; in main()
43 cpu_info[3] = 0; in main()
44 printf("Cpu Vendor: %s\n", (char*)(&cpu_info[0])); in main()
53 CpuId(1, 0, &cpu_info[0]); in main()
54 family = ((cpu_info[0] >> 8) & 0x0f) | ((cpu_info[0] >> 16) & 0xff0); in main()
55 model = ((cpu_info[0] >> 4) & 0x0f) | ((cpu_info[0] >> 12) & 0xf0); in main()
Dpsnr.cc199 static __inline void __cpuid(int cpu_info[4], int info_type) { in __cpuid()
204 : "=a"(cpu_info[0]), "=D"(cpu_info[1]), "=c"(cpu_info[2]), in __cpuid()
205 "=d"(cpu_info[3]) in __cpuid()
210 static __inline void __cpuid(int cpu_info[4], int info_type) { in __cpuid()
213 : "=a"(cpu_info[0]), "=b"(cpu_info[1]), "=c"(cpu_info[2]), in __cpuid()
214 "=d"(cpu_info[3]) in __cpuid()
221 int cpu_info[4]; in CpuHasSSE2() local
222 __cpuid(cpu_info, 1); in CpuHasSSE2()
223 if (cpu_info[3] & 0x04000000) { in CpuHasSSE2()
/external/webrtc/talk/media/base/
Dcpuid.cc46 uint32_t cpu_info[4]; in IsCoreIOrBetter() local
47 libyuv::CpuId(0, 0, &cpu_info[0]); // Function 0: Vendor ID in IsCoreIOrBetter()
48 if (cpu_info[1] == 0x756e6547 && cpu_info[3] == 0x49656e69 && in IsCoreIOrBetter()
49 cpu_info[2] == 0x6c65746e) { // GenuineIntel in IsCoreIOrBetter()
57 libyuv::CpuId(1, 0, &cpu_info[0]); // Function 1: Family and Model in IsCoreIOrBetter()
58 int family = ((cpu_info[0] >> 8) & 0x0f) | ((cpu_info[0] >> 16) & 0xff0); in IsCoreIOrBetter()
59 int model = ((cpu_info[0] >> 4) & 0x0f) | ((cpu_info[0] >> 12) & 0xf0); in IsCoreIOrBetter()
/external/google-breakpad/src/google_breakpad/processor/
Dsystem_info.h46 SystemInfo() : os(), os_short(), os_version(), cpu(), cpu_info(), in SystemInfo()
55 cpu_info.clear(); in Clear()
89 string cpu_info; member
/external/google-breakpad/src/processor/
Dminidump_processor.cc337 string* cpu_info) { in GetARMCpuInfo() argument
338 assert(raw_info != NULL && cpu_info != NULL); in GetARMCpuInfo()
344 cpu_info->append(cpu_string); in GetARMCpuInfo()
416 cpu_info->append(" "); in GetARMCpuInfo()
418 cpu_info->append(vendor); in GetARMCpuInfo()
421 cpu_info->append(cpu_string); in GetARMCpuInfo()
433 cpu_info->append(" "); in GetARMCpuInfo()
435 cpu_info->append(part); in GetARMCpuInfo()
438 cpu_info->append(cpu_string); in GetARMCpuInfo()
443 cpu_info->append(" features: "); in GetARMCpuInfo()
[all …]
Dstackwalk_common.cc792 string cpu_info = process_state.system_info()->cpu_info; in PrintProcessState() local
797 if (!cpu_info.empty()) { in PrintProcessState()
799 printf(" %s\n", cpu_info.c_str()); in PrintProcessState()
876 StripSeparator(process_state.system_info()->cpu_info).c_str(), in PrintProcessStateMachineReadable()
/external/libmojo/third_party/catapult/devil/devil/android/perf/
Dperf_control_devicetest.py30 cpu_info = perf.GetCpuInfo()
31 self.assertEquals(len(perf._cpu_files), len(cpu_info))
32 for _, online, governor in cpu_info:
/external/chromium-trace/catapult/devil/devil/android/perf/
Dperf_control_devicetest.py29 cpu_info = perf.GetCpuInfo()
30 self.assertEquals(len(perf._cpu_files), len(cpu_info))
31 for _, online, governor in cpu_info:
/external/mesa3d/src/gallium/auxiliary/hud/
Dhud_cpu.c139 struct cpu_info { struct
147 struct cpu_info *info = gr->query_data; in query_cpu_load() argument
183 struct cpu_info *info; in hud_cpu_graph_install()
200 gr->query_data = CALLOC_STRUCT(cpu_info); in hud_cpu_graph_install()
/external/libvpx/libvpx/third_party/libyuv/include/libyuv/
Dcpu_id.h73 void CpuId(uint32 eax, uint32 ecx, uint32* cpu_info);
/external/libyuv/files/include/libyuv/
Dcpu_id.h76 void CpuId(uint32 eax, uint32 ecx, uint32* cpu_info);
/external/webrtc/webrtc/system_wrappers/
DBUILD.gn20 "include/cpu_info.h",
56 "source/cpu_info.cc",
Dsystem_wrappers.gyp25 'include/cpu_info.h',
64 'source/cpu_info.cc',
/external/pcre/dist2/src/
Dpcre2_jit_test.c1144 PCRE2_UCHAR8 cpu_info[128]; in regression_tests() local
1146 PCRE2_UCHAR16 cpu_info[128]; in regression_tests() local
1148 PCRE2_UCHAR32 cpu_info[128]; in regression_tests() local
1159 pcre2_config_8(PCRE2_CONFIG_JITTARGET, &cpu_info); in regression_tests()
1161 pcre2_config_16(PCRE2_CONFIG_JITTARGET, &cpu_info); in regression_tests()
1163 pcre2_config_32(PCRE2_CONFIG_JITTARGET, &cpu_info); in regression_tests()
1168 for (i = 0; cpu_info[i]; i++) in regression_tests()
1169 printf("%c", (char)(cpu_info[i])); in regression_tests()
/external/autotest/server/cros/network/
Dwifi_client.py198 cpu_info = self.host.run('cat /proc/cpuinfo').stdout.splitlines()
200 cpu_info))
206 for line in cpu_info:

12