Home
last modified time | relevance | path

Searched refs:cpu_info (Results 1 – 25 of 46) 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]), in __cpuid()
67 "=d"(cpu_info[3]) in __cpuid()
73 void __cpuid(int cpu_info[4], int info_type) {
75 : "=a"(cpu_info[0]), "=b"(cpu_info[1]), "=c"(cpu_info[2]),
76 "=d"(cpu_info[3])
134 int cpu_info[4] = {-1}; in Initialize() local
144 __cpuid(cpu_info, 0); in Initialize()
145 int num_ids = cpu_info[0]; in Initialize()
146 std::swap(cpu_info[2], cpu_info[3]); 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()
/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/tensorflow/tensorflow/tools/test/
Dsystem_info_lib.py45 config.cpu_info.CopyFrom(gather_cpu_info())
78 cpu_info = test_log_pb2.CPUInfo()
79 cpu_info.num_cores = multiprocessing.cpu_count()
86 cpu_info.num_cores_allowed = (
91 if cpu_info.num_cores_allowed == 0:
92 cpu_info.num_cores_allowed = cpu_info.num_cores
96 cpu_info.cpu_info = info['brand']
97 cpu_info.num_cores = info['count']
98 cpu_info.mhz_per_cpu = info['hz_advertised_raw'][0] / 1.0e6
102 cpu_info.cache_size['L2'] = int(l2_cache_size.group(0)) * 1024
[all …]
/external/autotest/client/cros/video/detectors/
Dintel_cpu.py52 for cpu_info in lscpu_result.splitlines():
53 logging.debug(cpu_info)
54 if not ':' in cpu_info:
56 key, value = cpu_info.split(':', 1)
/external/autotest/client/site_tests/crosvm_Sanity/
Dcrosvm_Sanity.py73 for cpu_info in utils.get_cpuinfo():
74 if self.cpu_arch not in cpu_info['model name']:
76 self.cpu_arch, cpu_info['model name'])
78 flags = sorted(cpu_info['flags'].split(' '))
/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 …]
/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/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/tensorflow/tensorflow/core/platform/
Dcpu_info.cc30 int cpu_info[4] = {-1}; \
31 __cpuidex(cpu_info, a_inp, c_inp); \
32 a = cpu_info[0]; \
33 b = cpu_info[1]; \
34 c = cpu_info[2]; \
35 d = cpu_info[3]; \
/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/libcxx/utils/google-benchmark/src/
Dreporter.cc40 const CPUInfo &info = context.cpu_info; in PrintBasicContext()
67 BenchmarkReporter::Context::Context() : cpu_info(CPUInfo::Get()) {} in Context()
/external/google-benchmark/src/
Dreporter.cc40 const CPUInfo &info = context.cpu_info; in PrintBasicContext()
67 BenchmarkReporter::Context::Context() : cpu_info(CPUInfo::Get()) {} in Context()
/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);

12