py/objtype: Change type of enum-to-qstr table to uint16_t to save space.
Qstr values fit in 16-bits (and this fact is used elsewhere in the code) so
no need to use more than that for the large lookup tables. The compiler
will anyway give a warning if the qstr values don't fit in 16 bits. Saves
around 80 bytes of code space for Thumb2 archs.
diff --git a/py/runtime.h b/py/runtime.h
index bbdd764..da12f8f 100644
--- a/py/runtime.h
+++ b/py/runtime.h
@@ -57,9 +57,9 @@
mp_arg_val_t defval;
} mp_arg_t;
-// defined in objtype.c
-extern const qstr mp_unary_op_method_name[];
-extern const qstr mp_binary_op_method_name[];
+// Tables mapping operator enums to qstrs, defined in objtype.c
+extern const uint16_t mp_unary_op_method_name[];
+extern const uint16_t mp_binary_op_method_name[];
void mp_init(void);
void mp_deinit(void);