diff options
author | David Lechner <david@pybricks.com> | 2022-03-23 14:29:52 -0500 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2022-03-25 12:23:43 +1100 |
commit | 768879f999f4739e8507ae6013b5e9271618656e (patch) | |
tree | 025fb58f3ee7465bdb234c1fc77f9ff3ed677a40 /py/compile.c | |
parent | e7f6b9f4f76142ecd554106984a8520a0ada9d03 (diff) |
py/smallint: Introduce MP_SMALL_INT_BITS macro.
This adds a new MP_SMALL_INT_BITS macro that is a compile-time constant
that contains the number of bits available in an MP_SMALL_INT.
We can use this in place of the runtime function mp_small_int_bits().
Signed-off-by: David Lechner <david@pybricks.com>
Diffstat (limited to 'py/compile.c')
0 files changed, 0 insertions, 0 deletions