Home
last modified time | relevance | path

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

12

/third_party/flutter/skia/third_party/externals/libwebp/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 …]
/third_party/skia/third_party/externals/libwebp/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()
127 int cpu_info[4]; in x86CPUInfo() local
131 GetCPUInfo(cpu_info, 0); in x86CPUInfo()
132 max_cpuid_value = cpu_info[0]; in x86CPUInfo()
[all …]
/third_party/pulseaudio/src/pulsecore/
Dcpu.c24 void pa_cpu_init(pa_cpu_info *cpu_info) { in pa_cpu_init() argument
25 cpu_info->cpu_type = PA_CPU_UNDEFINED; in pa_cpu_init()
27 cpu_info->force_generic_code = false; in pa_cpu_init()
29 if (pa_cpu_init_x86(&cpu_info->flags.x86)) in pa_cpu_init()
30 cpu_info->cpu_type = PA_CPU_X86; in pa_cpu_init()
31 else if (pa_cpu_init_arm(&cpu_info->flags.arm)) in pa_cpu_init()
32 cpu_info->cpu_type = PA_CPU_ARM; in pa_cpu_init()
33 pa_cpu_init_orc(*cpu_info); in pa_cpu_init()
36 pa_remap_func_init(cpu_info); in pa_cpu_init()
37 pa_mix_func_init(cpu_info); in pa_cpu_init()
Dcpu-orc.c26 bool pa_cpu_init_orc(pa_cpu_info cpu_info) { in pa_cpu_init_orc() argument
32 if ((cpu_info.cpu_type == PA_CPU_X86) && (cpu_info.flags.x86 & x86_want_flags)) { in pa_cpu_init_orc()
Dcpu.h44 void pa_cpu_init(pa_cpu_info *cpu_info);
46 void pa_remap_func_init(const pa_cpu_info *cpu_info);
47 void pa_mix_func_init(const pa_cpu_info *cpu_info);
/third_party/boost/libs/beast/include/boost/beast/core/detail/
Dcpu_info.hpp59 struct cpu_info struct
63 cpu_info();
67 cpu_info::
68 cpu_info() in cpu_info() function in boost::beast::detail::cpu_info
86 cpu_info const&
89 static cpu_info const ci; in get_cpu_info()
/third_party/boost/boost/beast/core/detail/
Dcpu_info.hpp59 struct cpu_info struct
63 cpu_info();
67 cpu_info::
68 cpu_info() in cpu_info() function in boost::beast::detail::cpu_info
86 cpu_info const&
89 static cpu_info const ci; in get_cpu_info()
/third_party/libuv/src/unix/
Dopenbsd.c189 uv_cpu_info_t* cpu_info; in uv_cpu_info() local
218 cpu_info = &(*cpu_infos)[i]; in uv_cpu_info()
220 cpu_info->cpu_times.user = (uint64_t)(info[CP_USER]) * multiplier; in uv_cpu_info()
221 cpu_info->cpu_times.nice = (uint64_t)(info[CP_NICE]) * multiplier; in uv_cpu_info()
222 cpu_info->cpu_times.sys = (uint64_t)(info[CP_SYS]) * multiplier; in uv_cpu_info()
223 cpu_info->cpu_times.idle = (uint64_t)(info[CP_IDLE]) * multiplier; in uv_cpu_info()
224 cpu_info->cpu_times.irq = (uint64_t)(info[CP_INTR]) * multiplier; in uv_cpu_info()
226 cpu_info->model = uv__strdup(model); in uv_cpu_info()
227 cpu_info->speed = cpuspeed; in uv_cpu_info()
Dnetbsd.c184 uv_cpu_info_t* cpu_info; in uv_cpu_info() local
224 cpu_info = &(*cpu_infos)[i]; in uv_cpu_info()
225 cpu_info->cpu_times.user = (uint64_t)(cp_times[CP_USER+cur]) * multiplier; in uv_cpu_info()
226 cpu_info->cpu_times.nice = (uint64_t)(cp_times[CP_NICE+cur]) * multiplier; in uv_cpu_info()
227 cpu_info->cpu_times.sys = (uint64_t)(cp_times[CP_SYS+cur]) * multiplier; in uv_cpu_info()
228 cpu_info->cpu_times.idle = (uint64_t)(cp_times[CP_IDLE+cur]) * multiplier; in uv_cpu_info()
229 cpu_info->cpu_times.irq = (uint64_t)(cp_times[CP_INTR+cur]) * multiplier; in uv_cpu_info()
230 cpu_info->model = uv__strdup(model); in uv_cpu_info()
231 cpu_info->speed = (int)(cpuspeed/(uint64_t) 1e6); in uv_cpu_info()
Dfreebsd.c176 uv_cpu_info_t* cpu_info; in uv_cpu_info() local
248 cpu_info = &(*cpu_infos)[i]; in uv_cpu_info()
250 cpu_info->cpu_times.user = (uint64_t)(cp_times[CP_USER+cur]) * multiplier; in uv_cpu_info()
251 cpu_info->cpu_times.nice = (uint64_t)(cp_times[CP_NICE+cur]) * multiplier; in uv_cpu_info()
252 cpu_info->cpu_times.sys = (uint64_t)(cp_times[CP_SYS+cur]) * multiplier; in uv_cpu_info()
253 cpu_info->cpu_times.idle = (uint64_t)(cp_times[CP_IDLE+cur]) * multiplier; in uv_cpu_info()
254 cpu_info->cpu_times.irq = (uint64_t)(cp_times[CP_INTR+cur]) * multiplier; in uv_cpu_info()
256 cpu_info->model = uv__strdup(model); in uv_cpu_info()
257 cpu_info->speed = cpuspeed; in uv_cpu_info()
Dsunos.c645 uv_cpu_info_t* cpu_info; in uv_cpu_info() local
665 cpu_info = *cpu_infos; in uv_cpu_info()
669 cpu_info->speed = 0; in uv_cpu_info()
670 cpu_info->model = NULL; in uv_cpu_info()
675 cpu_info->speed = (knp->data_type == KSTAT_DATA_INT32) ? knp->value.i32 in uv_cpu_info()
680 cpu_info->model = uv__strdup(KSTAT_NAMED_STR_PTR(knp)); in uv_cpu_info()
684 cpu_info++; in uv_cpu_info()
687 cpu_info = *cpu_infos; in uv_cpu_info()
696 cpu_info->cpu_times.user = 0; in uv_cpu_info()
697 cpu_info->cpu_times.nice = 0; in uv_cpu_info()
[all …]
Dibmi.c284 uv_cpu_info_t* cpu_info; in uv_cpu_info() local
296 cpu_info = *cpu_infos; in uv_cpu_info()
298 cpu_info->speed = 0; in uv_cpu_info()
299 cpu_info->model = uv__strdup("unknown"); in uv_cpu_info()
300 cpu_info->cpu_times.user = 0; in uv_cpu_info()
301 cpu_info->cpu_times.sys = 0; in uv_cpu_info()
302 cpu_info->cpu_times.idle = 0; in uv_cpu_info()
303 cpu_info->cpu_times.irq = 0; in uv_cpu_info()
304 cpu_info->cpu_times.nice = 0; in uv_cpu_info()
305 cpu_info++; in uv_cpu_info()
Ddarwin.c336 uv_cpu_info_t* cpu_info; in uv_cpu_info() local
365 cpu_info = &(*cpu_infos)[i]; in uv_cpu_info()
367 cpu_info->cpu_times.user = (uint64_t)(info[i].cpu_ticks[0]) * multiplier; in uv_cpu_info()
368 cpu_info->cpu_times.nice = (uint64_t)(info[i].cpu_ticks[3]) * multiplier; in uv_cpu_info()
369 cpu_info->cpu_times.sys = (uint64_t)(info[i].cpu_ticks[1]) * multiplier; in uv_cpu_info()
370 cpu_info->cpu_times.idle = (uint64_t)(info[i].cpu_ticks[2]) * multiplier; in uv_cpu_info()
371 cpu_info->cpu_times.irq = 0; in uv_cpu_info()
373 cpu_info->model = uv__strdup(model); in uv_cpu_info()
374 cpu_info->speed = cpuspeed/1000000; in uv_cpu_info()
Dhaiku.c120 uv_cpu_info_t* cpu_info; in uv_cpu_info() local
158 cpu_info = *cpu_infos; in uv_cpu_info()
160 cpu_info->model = uv__strdup("unknown"); in uv_cpu_info()
161 cpu_info->speed = (int)(cpuspeed / 1000000); in uv_cpu_info()
162 cpu_info++; in uv_cpu_info()
Dos390.c230 uv_cpu_info_t* cpu_info; in uv_cpu_info() local
252 cpu_info = *cpu_infos; in uv_cpu_info()
255 cpu_info->speed = *(int*)(info.siv1v2si22v1.si22v1cpucapability); in uv_cpu_info()
256 cpu_info->model = uv__malloc(CPCMODEL_LENGTH + 1); in uv_cpu_info()
257 memset(cpu_info->model, '\0', CPCMODEL_LENGTH + 1); in uv_cpu_info()
258 memcpy(cpu_info->model, info.siv1v2si11v1.si11v1cpcmodel, CPCMODEL_LENGTH); in uv_cpu_info()
259 cpu_info->cpu_times.user = cpu_usage_avg; in uv_cpu_info()
261 cpu_info->cpu_times.sys = 0; in uv_cpu_info()
262 cpu_info->cpu_times.idle = 0; in uv_cpu_info()
263 cpu_info->cpu_times.irq = 0; in uv_cpu_info()
[all …]
Daix.c1045 uv_cpu_info_t* cpu_info; in uv_cpu_info() local
1082 cpu_info = *cpu_infos; in uv_cpu_info()
1084 cpu_info->speed = (int)(ps_total.processorHZ / 1000000); in uv_cpu_info()
1085 cpu_info->model = uv__strdup(ps_total.description); in uv_cpu_info()
1086 cpu_info->cpu_times.user = ps_cpus[idx].user; in uv_cpu_info()
1087 cpu_info->cpu_times.sys = ps_cpus[idx].sys; in uv_cpu_info()
1088 cpu_info->cpu_times.idle = ps_cpus[idx].idle; in uv_cpu_info()
1089 cpu_info->cpu_times.irq = ps_cpus[idx].wait; in uv_cpu_info()
1090 cpu_info->cpu_times.nice = 0; in uv_cpu_info()
1091 cpu_info++; in uv_cpu_info()
/third_party/abseil-cpp/absl/random/internal/
Dranden_detect.cc46 static void __cpuid(int cpu_info[4], int info_type) { in __cpuid()
48 : "=a"(cpu_info[0]), "=b"(cpu_info[1]), "=c"(cpu_info[2]), in __cpuid()
49 "=d"(cpu_info[3]) in __cpuid()
/third_party/skia/third_party/externals/abseil-cpp/absl/random/internal/
Dranden_detect.cc46 static void __cpuid(int cpu_info[4], int info_type) { in __cpuid()
48 : "=a"(cpu_info[0]), "=b"(cpu_info[1]), "=c"(cpu_info[2]), in __cpuid()
49 "=d"(cpu_info[3]) in __cpuid()
/third_party/mindspore/mindspore/lite/src/delegate/npu/
Dnpu_manager.cc113 std::ifstream cpu_info("/proc/cpuinfo"); in IsKirinChip() local
114 if (!(cpu_info.good() && cpu_info.is_open())) { in IsKirinChip()
118 while (!cpu_info.eof()) { in IsKirinChip()
119 getline(cpu_info, line); in IsKirinChip()
129 cpu_info.close(); in IsKirinChip()
135 cpu_info.close(); in IsKirinChip()
139 cpu_info.close(); in IsKirinChip()
/third_party/mindspore/mindspore/lite/src/common/
Dcontext_util.cc40 auto cpu_info = std::make_shared<mindspore::CPUDeviceInfo>(); in CPUDeviceInfoFromCPUDeviceContext() local
41 MS_CHECK_TRUE_RET(cpu_info != nullptr, nullptr); in CPUDeviceInfoFromCPUDeviceContext()
42 cpu_info->SetEnableFP16(cpu_context.device_info_.cpu_device_info_.enable_float16_); in CPUDeviceInfoFromCPUDeviceContext()
43 PassBasicProperties(cpu_info, cpu_context); in CPUDeviceInfoFromCPUDeviceContext()
44 return cpu_info; in CPUDeviceInfoFromCPUDeviceContext()
/third_party/pulseaudio/src/tests/
Dcpu-mix-test.c149 pa_cpu_info cpu_info = { PA_CPU_UNDEFINED, {}, false }; in START_TEST() local
152 cpu_info.force_generic_code = true; in START_TEST()
153 pa_mix_func_init(&cpu_info); in START_TEST()
156 cpu_info.force_generic_code = false; in START_TEST()
157 pa_mix_func_init(&cpu_info); in START_TEST()
Dcpu-volume-test.c190 pa_cpu_info cpu_info; in START_TEST() local
194 pa_zero(cpu_info); in START_TEST()
195 cpu_info.cpu_type = PA_CPU_X86; in START_TEST()
196 pa_cpu_get_x86_flags(&cpu_info.flags.x86); in START_TEST()
201 if (!pa_cpu_init_orc(cpu_info)) { in START_TEST()
/third_party/node/src/
Dnode_report.cc406 uv_cpu_info_t* cpu_info; in PrintCpuInfo() local
408 if (uv_cpu_info(&cpu_info, &count) == 0) { in PrintCpuInfo()
412 writer->json_keyvalue("model", cpu_info[i].model); in PrintCpuInfo()
413 writer->json_keyvalue("speed", cpu_info[i].speed); in PrintCpuInfo()
414 writer->json_keyvalue("user", cpu_info[i].cpu_times.user); in PrintCpuInfo()
415 writer->json_keyvalue("nice", cpu_info[i].cpu_times.nice); in PrintCpuInfo()
416 writer->json_keyvalue("sys", cpu_info[i].cpu_times.sys); in PrintCpuInfo()
417 writer->json_keyvalue("idle", cpu_info[i].cpu_times.idle); in PrintCpuInfo()
418 writer->json_keyvalue("irq", cpu_info[i].cpu_times.irq); in PrintCpuInfo()
422 uv_free_cpu_info(cpu_info, count); in PrintCpuInfo()
/third_party/json/benchmarks/thirdparty/benchmark/src/
Dreporter.cc43 const CPUInfo &info = context.cpu_info; in PrintBasicContext()
73 BenchmarkReporter::Context::Context() : cpu_info(CPUInfo::Get()) {} in Context()
/third_party/benchmark/src/
Dreporter.cc47 const CPUInfo &info = context.cpu_info; in PrintBasicContext()
92 : cpu_info(CPUInfo::Get()), sys_info(SystemInfo::Get()) {} in Context()

12