summaryrefslogtreecommitdiff
path: root/os/windows/posix.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2013-01-21 12:28:42 -0700
committerJens Axboe <axboe@kernel.dk>2013-01-21 12:28:42 -0700
commit4ee47af0e535676100380034dbc5e05c2f1b1642 (patch)
tree757312605a082ef768842cf4d93c97f1288177db /os/windows/posix.c
parentdef823d406ad78d3f9690ee8804e743e1d5a8aff (diff)
downloadfio-4ee47af0e535676100380034dbc5e05c2f1b1642.tar.gz
fio-4ee47af0e535676100380034dbc5e05c2f1b1642.tar.bz2
windows: use hweight64(), it's a 64-bit type
Courtesy of Bruce. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'os/windows/posix.c')
-rwxr-xr-xos/windows/posix.c2
1 files changed, 1 insertions, 1 deletions
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);