From: Jens Axboe Date: Mon, 21 Jan 2013 19:28:42 +0000 (-0700) Subject: windows: use hweight64(), it's a 64-bit type X-Git-Tag: fio-2.0.14~107 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=4ee47af0e535676100380034dbc5e05c2f1b1642 windows: use hweight64(), it's a 64-bit type Courtesy of Bruce. Signed-off-by: Jens Axboe --- diff --git a/os/windows/posix.c b/os/windows/posix.c index c4d738c7..f5d53001 100755 --- a/os/windows/posix.c +++ b/os/windows/posix.c @@ -69,7 +69,7 @@ int GetNumLogicalProcessors(void) for (i = 0; i < len / sizeof(SYSTEM_LOGICAL_PROCESSOR_INFORMATION); i++) { if (processor_info[i].Relationship == RelationProcessorCore) - num_processors += hweight32(processor_info[i].ProcessorMask); + num_processors += hweight64(processor_info[i].ProcessorMask); } free(processor_info);