py: Save about 200 bytes of ROM by using smaller type for static table.
This commit is contained in:
parent
ecc88e949c
commit
1c70cbf151
2
py/mpz.c
2
py/mpz.c
|
@ -482,7 +482,7 @@ STATIC void mpn_div(mpz_dig_t *num_dig, mp_uint_t *num_len, mpz_dig_t *den_dig,
|
|||
|
||||
#define MIN_ALLOC (2)
|
||||
|
||||
static const uint log_base2_floor[] = {
|
||||
STATIC const uint8_t log_base2_floor[] = {
|
||||
0,
|
||||
0, 1, 1, 2,
|
||||
2, 2, 2, 3,
|
||||
|
|
|
@ -105,7 +105,7 @@ typedef mp_longint_impl_t fmt_int_t;
|
|||
typedef mp_int_t fmt_int_t;
|
||||
#endif
|
||||
|
||||
STATIC const uint log_base2_floor[] = {
|
||||
STATIC const uint8_t log_base2_floor[] = {
|
||||
0,
|
||||
0, 1, 1, 2,
|
||||
2, 2, 2, 3,
|
||||
|
|
Loading…
Reference in New Issue