Home
last modified time | relevance | path

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

12

/third_party/node/deps/v8/src/base/
Dcpu.cc66 static V8_INLINE void __cpuid(int cpu_info[4], int info_type) { in __cpuid()
76 : "=a"(cpu_info[0]), "=D"(cpu_info[1]), "=c"(cpu_info[2]), in __cpuid()
77 "=d"(cpu_info[3]) in __cpuid()
81 : "=a"(cpu_info[0]), "=b"(cpu_info[1]), "=c"(cpu_info[2]), in __cpuid()
82 "=d"(cpu_info[3]) in __cpuid()
460 int cpu_info[4]; in CPU() local
469 __cpuid(cpu_info, 0); in CPU()
470 unsigned num_ids = cpu_info[0]; in CPU()
471 std::swap(cpu_info[2], cpu_info[3]); in CPU()
472 memcpy(vendor_, cpu_info + 1, 12); in CPU()
[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/node/deps/uv/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()
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()
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()
Dsunos.c667 uv_cpu_info_t* cpu_info; in uv_cpu_info() local
687 cpu_info = *cpu_infos; in uv_cpu_info()
691 cpu_info->speed = 0; in uv_cpu_info()
692 cpu_info->model = NULL; in uv_cpu_info()
697 cpu_info->speed = (knp->data_type == KSTAT_DATA_INT32) ? knp->value.i32 in uv_cpu_info()
702 cpu_info->model = uv__strdup(KSTAT_NAMED_STR_PTR(knp)); in uv_cpu_info()
706 cpu_info++; in uv_cpu_info()
709 cpu_info = *cpu_infos; in uv_cpu_info()
718 cpu_info->cpu_times.user = 0; in uv_cpu_info()
719 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/libuv/src/unix/
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()
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()
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()
Dsunos.c667 uv_cpu_info_t* cpu_info; in uv_cpu_info() local
687 cpu_info = *cpu_infos; in uv_cpu_info()
691 cpu_info->speed = 0; in uv_cpu_info()
692 cpu_info->model = NULL; in uv_cpu_info()
697 cpu_info->speed = (knp->data_type == KSTAT_DATA_INT32) ? knp->value.i32 in uv_cpu_info()
702 cpu_info->model = uv__strdup(KSTAT_NAMED_STR_PTR(knp)); in uv_cpu_info()
706 cpu_info++; in uv_cpu_info()
709 cpu_info = *cpu_infos; in uv_cpu_info()
718 cpu_info->cpu_times.user = 0; in uv_cpu_info()
719 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 …]
/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/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 = { PA_CPU_UNDEFINED, {}, false }; 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()

12