Free 188 bytes of RAM by moving bitrevtab to PMEM

This commit is contained in:
Earle F. Philhower, III committed 2017-11-18 19:12:24 -08:00
1 parent fdffe0226e
commit d723b36aca
2 files changed
+4 -4

No files matched your search

+3 -3
View File
@@ -77,8 +77,8 @@ static const int nfftlog2Tab[NUM_FFT_SIZES] PROGMEM = {6, 9};
part0 = inout;
part1 = inout + (1 << nbits);
while ((a = *tab++) != 0) {
b = *tab++;
while ((a = pgm_read_byte(tab++)) != 0) {
b = pgm_read_byte(tab++);
swapcplx(part0[4*a+0], part0[4*b+0]); /* 0xxx0 <-> 0yyy0 */
swapcplx(part0[4*a+2], part1[4*b+0]); /* 0xxx1 <-> 1yyy0 */
@@ -88,7 +88,7 @@ static const int nfftlog2Tab[NUM_FFT_SIZES] PROGMEM = {6, 9};
do {
swapcplx(part0[4*a+2], part1[4*a+0]); /* 0xxx1 <-> 1xxx0 */
} while ((a = *tab++) != 0);
} while ((a = pgm_read_byte(tab++)) != 0);
}
+1 -1
View File
@@ -625,7 +625,7 @@ const int kbdWindow[128 + 1024] PROGMEM = {
const int bitrevtabOffset[NUM_IMDCT_SIZES] PROGMEM = {0, 17};
const unsigned char bitrevtab[17 + 129] = {
const unsigned char bitrevtab[17 + 129] PROGMEM = {
/* nfft = 64 */
0x01, 0x08, 0x02, 0x04, 0x03, 0x0c, 0x05, 0x0a, 0x07, 0x0e, 0x0b, 0x0d, 0x00, 0x06, 0x09, 0x0f,
0x00,