Skip to content

Commit

Permalink
Merge pull request #252 from fcharlie/arm-intrinsics
Browse files Browse the repository at this point in the history
Fix ARM64 __popcnt intrinsics
  • Loading branch information
tatsuhiro-t authored Aug 31, 2024
2 parents e9f34d9 + f4d323a commit 2c4a381
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/nghttp3_ringbuf.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#include "nghttp3_macro.h"

#if defined(_MSC_VER) && !defined(__clang__) && \
(defined(_M_ARM) || defined(_M_ARM64))
(defined(_M_ARM) || (defined(_M_ARM64) && _MSC_VER < 1941))
unsigned int __popcnt(unsigned int x) {
unsigned int c = 0;
for (; x; ++c) {
Expand Down

0 comments on commit 2c4a381

Please sign in to comment.