X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=os%2Fos-windows.h;h=66036351e912c76979f06697c7e5d0dab43059d9;hb=029716a2f67245a6aad59cf8b52261fa39c8a07f;hp=d465818ca6778de914f349b30df13a0ed5fd708f;hpb=95db3079d0c9060f0fc31d5425bcd7d67076523b;p=fio.git diff --git a/os/os-windows.h b/os/os-windows.h index d465818c..66036351 100644 --- a/os/os-windows.h +++ b/os/os-windows.h @@ -162,11 +162,6 @@ static inline unsigned long long os_phys_mem(void) return (unsigned long long) pages * (unsigned long long) pagesize; } -static inline void os_get_tmpdir(char *path, int len) -{ - GetTempPath(len, path); -} - static inline int gettid(void) { return GetCurrentThreadId(); @@ -215,7 +210,12 @@ 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) +static inline int fio_cpu_isset(os_cpu_mask_t *mask, int cpu) +{ + return (*mask & (1U << cpu)); +} + +static inline int fio_cpu_count(os_cpu_mask_t *mask) { return hweight64(*mask); }