diff options
| author | Damien George <damien.p.george@gmail.com> | 2014-08-30 00:38:16 +0100 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2014-08-30 00:38:16 +0100 |
| commit | 1c70cbf1510a958c6dd0add5713a71c16e0fea71 (patch) | |
| tree | 37b069fdcb0ad2fe05f91bd996e0fb348810b781 | |
| parent | ecc88e949ca5e307d22da4605a40d39ea2df9e3b (diff) | |
py: Save about 200 bytes of ROM by using smaller type for static table.
| -rw-r--r-- | py/mpz.c | 2 | ||||
| -rw-r--r-- | py/objint.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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, diff --git a/py/objint.c b/py/objint.c index b0c904bca..16e868a37 100644 --- a/py/objint.c +++ b/py/objint.c @@ -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, |
