8000 py: Save about 200 bytes of ROM by using smaller type for static table. · domdfcoding/circuitpython@1c70cbf · GitHub
[go: up one dir, main page]

Skip to content

Commit 1c70cbf

Browse files
committed
py: Save about 200 bytes of ROM by using smaller type for static table.
1 parent ecc88e9 commit 1c70cbf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

py/mpz.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ STATIC void mpn_div(mpz_dig_t *num_dig, mp_uint_t *num_len, mpz_dig_t *den_dig,
482482

483483
#define MIN_ALLOC (2)
484484

485-
static const uint log_base2_floor[] = {
485+
STATIC const uint8_t log_base2_floor[] = {
486486
0,
487487
0, 1, 1, 2,
488488
2, 2, 2, 3,

py/objint.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ typedef mp_longint_impl_t fmt_int_t;
105105
typedef mp_int_t fmt_int_t;
106106
#endif
107107

108-
STATIC const uint log_base2_floor[] = {
108+
STATIC const uint8_t log_base2_floor[] = {
109109
0,
110110
0, 1, 1, 2,
111111
2, 2, 2, 3,

0 commit comments

Comments
 (0)
0