Limit float formatting to only targets building Quake
The Quake plugin is the only code that actually relies on float formatting. Because Quake only runs on targets with huge memory anyway, limiting their formatting to just those targets will minimize the increased memory use in the core. Change-Id: Icdbe26ec6ede564861cc01ac4add76a12b00ecd5
This commit is contained in:
parent
5d05b9d3e9
commit
b0e9bb1b91
1 changed files with 7 additions and 0 deletions
|
@ -29,11 +29,18 @@
|
||||||
#include "ap_int.h"
|
#include "ap_int.h"
|
||||||
|
|
||||||
#ifndef BOOTLOADER
|
#ifndef BOOTLOADER
|
||||||
|
|
||||||
|
/* Only the Quake plugin needs float formatting */
|
||||||
|
#if defined(HAVE_LCD_COLOR) && \
|
||||||
|
(!defined(LCD_STRIDEFORMAT) || (LCD_STRIDEFORMAT != VERTICAL_STRIDE)) && \
|
||||||
|
(PLUGIN_BUFFER_SIZE > 0x14000) && (CONFIG_PLATFORM & PLATFORM_NATIVE) && defined(CPU_ARM)
|
||||||
/* turn everything on */
|
/* turn everything on */
|
||||||
#define FMT_LENMOD (0xffffffff)
|
#define FMT_LENMOD (0xffffffff)
|
||||||
#define FMT_RADIX (0xffffffff)
|
#define FMT_RADIX (0xffffffff)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
/* these are the defaults if no other preference is given */
|
/* these are the defaults if no other preference is given */
|
||||||
#ifndef FMT_LENMOD
|
#ifndef FMT_LENMOD
|
||||||
#define FMT_LENMOD (FMT_LENMOD_l | \
|
#define FMT_LENMOD (FMT_LENMOD_l | \
|
||||||
|
|
Loading…
Reference in a new issue