1
0
Fork 0
forked from len0rd/rockbox

Enable float formatting in printf

Needed for g#3415, and if the comment is to be believed, this needed
updating for recent MIPS targets anyway.

Just blanket enable everything for all targets with >= 8 MiB of RAM.
The only targets with less than this are the Sansa Clip, c200v2, and
m200v4, which all have 2 MB of RAM.

The added code size is around 4 KiB to 7 KiB, depending on the target.

Change-Id: I5773482a13543dabb1f93f713a21f1382a9c5a22
This commit is contained in:
Aidan MacDonald 2021-06-11 19:31:12 +01:00
parent f6c7407cc3
commit a3f2b64a46

View file

@ -30,13 +30,10 @@
#ifndef BOOTLOADER #ifndef BOOTLOADER
/* Only the Quake plugin needs float formatting */ /* Turn everything on if we have enough RAM. */
#if defined(HAVE_LCD_COLOR) && \ #if MEMORYSIZE >= 8
(!defined(LCD_STRIDEFORMAT) || (LCD_STRIDEFORMAT != VERTICAL_STRIDE)) && \ # define FMT_LENMOD (0xffffffff)
(PLUGIN_BUFFER_SIZE > 0x14000) && (CONFIG_PLATFORM & PLATFORM_NATIVE) && defined(CPU_ARM) # define FMT_RADIX (0xffffffff)
/* turn everything on */
#define FMT_LENMOD (0xffffffff)
#define FMT_RADIX (0xffffffff)
#endif #endif
#endif #endif