-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ngtcp2] Fix __popcnt intrinsics on arm64.
- Loading branch information
1 parent
0ac82df
commit 929b25b
Showing
5 changed files
with
25 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/lib/ngtcp2_ringbuf.c b/lib/ngtcp2_ringbuf.c | ||
index c381c23..73d9230 100644 | ||
--- a/lib/ngtcp2_ringbuf.c | ||
+++ b/lib/ngtcp2_ringbuf.c | ||
@@ -32,7 +32,7 @@ | ||
#include "ngtcp2_macro.h" | ||
|
||
#if defined(_MSC_VER) && !defined(__clang__) && \ | ||
- (defined(_M_ARM) || defined(_M_ARM64)) | ||
+ (defined(_M_ARM) || (defined(_M_ARM64) && _MSC_VER < 1941)) | ||
static unsigned int __popcnt(unsigned int x) { | ||
unsigned int c = 0; | ||
for (; x; ++c) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters