py/misc: Remove unused mp_check function.

This is unused since 007f127a61 "all:
Simplify mp_int_t/mp_uint_t definition".

Signed-off-by: Jeff Epler <jepler@unpythonic.net>
This commit is contained in:
Jeff Epler
2025-11-27 21:17:12 -06:00
committed by Damien George
parent 9c9b99686e
commit 8b8cd82560

View File

@@ -411,11 +411,6 @@ static inline uint32_t mp_ctz(uint32_t x) {
return _BitScanForward(&tz, x) ? tz : 0;
}
// Workaround for 'warning C4127: conditional expression is constant'.
static inline bool mp_check(bool value) {
return value;
}
static inline uint32_t mp_popcount(uint32_t x) {
return __popcnt(x);
}
@@ -424,7 +419,6 @@ static inline uint32_t mp_popcount(uint32_t x) {
#define mp_clzl(x) __builtin_clzl(x)
#define mp_clzll(x) __builtin_clzll(x)
#define mp_ctz(x) __builtin_ctz(x)
#define mp_check(x) (x)
#if __has_builtin(__builtin_popcount)
#define mp_popcount(x) __builtin_popcount(x)
#else