diff options
author | robot-contrib <[email protected]> | 2025-05-01 08:17:53 +0300 |
---|---|---|
committer | robot-contrib <[email protected]> | 2025-05-01 08:57:12 +0300 |
commit | 0d5861bb6d9b5e7f39cbdc17456909efab426bd9 (patch) | |
tree | 9414709cf2454ae612ed7a34c34a8047436d6932 /contrib/libs/nghttp3/lib/nghttp3_ringbuf.c | |
parent | a24e6ced72db4dbcfba43e2f8c630986b2c9c38b (diff) |
Update contrib/libs/nghttp3 to 1.9.0
commit_hash:404c76a4ce7d29b42f27d1a0cd72424faad00313
Diffstat (limited to 'contrib/libs/nghttp3/lib/nghttp3_ringbuf.c')
-rw-r--r-- | contrib/libs/nghttp3/lib/nghttp3_ringbuf.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/libs/nghttp3/lib/nghttp3_ringbuf.c b/contrib/libs/nghttp3/lib/nghttp3_ringbuf.c index 85c2e03f877..ccd1d3e99ab 100644 --- a/contrib/libs/nghttp3/lib/nghttp3_ringbuf.c +++ b/contrib/libs/nghttp3/lib/nghttp3_ringbuf.c @@ -35,8 +35,9 @@ #ifndef NDEBUG static int ispow2(size_t n) { -# if defined(_MSC_VER) && !defined(__clang__) && \ - (defined(_M_ARM) || (defined(_M_ARM64) && _MSC_VER < 1941)) +# if defined(DISABLE_POPCNT) || \ + (defined(_MSC_VER) && !defined(__clang__) && \ + (defined(_M_ARM) || (defined(_M_ARM64) && _MSC_VER < 1941))) return n && !(n & (n - 1)); # elif defined(WIN32) return 1 == __popcnt((unsigned int)n); |