We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c9b996 commit 8b8cd82Copy full SHA for 8b8cd82
py/misc.h
@@ -411,11 +411,6 @@ static inline uint32_t mp_ctz(uint32_t x) {
411
return _BitScanForward(&tz, x) ? tz : 0;
412
}
413
414
-// Workaround for 'warning C4127: conditional expression is constant'.
415
-static inline bool mp_check(bool value) {
416
- return value;
417
-}
418
-
419
static inline uint32_t mp_popcount(uint32_t x) {
420
return __popcnt(x);
421
@@ -424,7 +419,6 @@ static inline uint32_t mp_popcount(uint32_t x) {
424
#define mp_clzl(x) __builtin_clzl(x)
425
#define mp_clzll(x) __builtin_clzll(x)
426
#define mp_ctz(x) __builtin_ctz(x)
427
-#define mp_check(x) (x)
428
422
#if __has_builtin(__builtin_popcount)
429
423
#define mp_popcount(x) __builtin_popcount(x)
430
#else
0 commit comments