diff options
| author | Jeff Epler <jepler@unpythonic.net> | 2025-11-27 21:17:12 -0600 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2025-12-18 11:35:38 +1100 |
| commit | 8b8cd825605a6cf93e7de3db1c871ba56bd2abfc (patch) | |
| tree | a9e68de5e0117d8def11e28a87adbfada870ae69 /py | |
| parent | 9c9b99686edfc2809d09eebfb012eaeed5e3bb96 (diff) | |
py/misc: Remove unused mp_check function.
This is unused since 007f127a61ea058ca010b85883072bdefe0234c0 "all:
Simplify mp_int_t/mp_uint_t definition".
Signed-off-by: Jeff Epler <jepler@unpythonic.net>
Diffstat (limited to 'py')
| -rw-r--r-- | py/misc.h | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -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 |
