]>
git.proxmox.com Git - wasi-libc.git/blob - libc-top-half/musl/src/sched/sched_cpucount.c
4 int __sched_cpucount(size_t size
, const cpu_set_t
*set
)
7 const unsigned char *p
= (const void *)set
;
8 for (i
=0; i
<size
; i
++) for (j
=0; j
<8; j
++)
9 if (p
[i
] & (1<<j
)) cnt
++;