aboutsummaryrefslogtreecommitdiff
path: root/src/unix/internal.h
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2024-09-02 11:24:11 +0200
committerGitHub <noreply@github.com>2024-09-02 11:24:11 +0200
commit5ff1fc724f7f53d921599dbe18e6f96b298233f1 (patch)
tree8e570afca4bbd6e3b068203f05e5917ee4e72dd2 /src/unix/internal.h
parentf00d4b677556a007a28fcb0bb3548ecdb54a29ae (diff)
downloadlibuv-5ff1fc724f7f53d921599dbe18e6f96b298233f1.tar.gz
libuv-5ff1fc724f7f53d921599dbe18e6f96b298233f1.zip
win: fix uv_available_parallelism on win32 (#4525)
Fixes commit 58dfb6c89b from a few days ago. DWORD_PTR is 32 bits on x86 Windows. Use the right bit count when checking the population count. Interestingly enough, it manifested itself as double counting online processors, presumably because the compiler emits a ROR instead of SHR. Fixes: https://github.com/libuv/libuv/issues/4524
Diffstat (limited to 'src/unix/internal.h')
0 files changed, 0 insertions, 0 deletions