summaryrefslogtreecommitdiff
path: root/py
diff options
context:
space:
mode:
Diffstat (limited to 'py')
-rw-r--r--py/misc.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/py/misc.h b/py/misc.h
index a14bef7fe..72560da1e 100644
--- a/py/misc.h
+++ b/py/misc.h
@@ -204,20 +204,6 @@ int DEBUG_printf(const char *fmt, ...);
extern mp_uint_t mp_verbose_flag;
-// This is useful for unicode handling. Some CPU archs has
-// special instructions for efficient implementation of this
-// function (e.g. CLZ on ARM).
-// NOTE: this function is unused at the moment
-#ifndef count_lead_ones
-static inline mp_uint_t count_lead_ones(byte val) {
- mp_uint_t c = 0;
- for (byte mask = 0x80; val & mask; mask >>= 1) {
- c++;
- }
- return c;
-}
-#endif
-
/** float internals *************/
#if MICROPY_PY_BUILTINS_FLOAT