X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=os%2Fos-windows.h;h=7bfe3d2255e4ea06dc191011c014f36b62435603;hp=de120b64ff7e0b674b53fc878130f63274880dd9;hb=c2acfbac7e9eb8ac5407ac024c0fd000614c77e2;hpb=225ba9e3433cf27d8ff7b213d9f78b7ef2776c70 diff --git a/os/os-windows.h b/os/os-windows.h index de120b64..7bfe3d22 100644 --- a/os/os-windows.h +++ b/os/os-windows.h @@ -214,6 +214,11 @@ static inline void fio_cpu_set(os_cpu_mask_t *mask, int cpu) *mask |= 1 << cpu; } +static inline int fio_cpu_count(os_cpu_mask_t *mask, int cpu) +{ + return hweight64(*mask); +} + static inline int fio_cpuset_init(os_cpu_mask_t *mask) { *mask = 0;