mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 12:10:13 +01:00
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:
committed by
Damien George
parent
9c9b99686e
commit
8b8cd82560
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user