projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
def823d
)
windows: use hweight64(), it's a 64-bit type
author
Jens Axboe
<axboe@kernel.dk>
Mon, 21 Jan 2013 19:28:42 +0000
(12:28 -0700)
committer
Jens Axboe
<axboe@kernel.dk>
Mon, 21 Jan 2013 19:28:42 +0000
(12:28 -0700)
Courtesy of Bruce.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
os/windows/posix.c
patch
|
blob
|
blame
|
history
diff --git
a/os/windows/posix.c
b/os/windows/posix.c
index c4d738c7ecd57aa3bd963f9c3cff6ab551acd880..f5d530011c4f938134bc8a6f77219704a053ebce 100755
(executable)
--- 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 += hweight
32
(processor_info[i].ProcessorMask);
+ num_processors += hweight
64
(processor_info[i].ProcessorMask);
}
free(processor_info);