build: enable -ffast-math.
By default, GCC implements strict IEEE 754 confirmance and chooses bitwise accuracy over speed. -ffast-math relaxes this and lets GCC do optimisations like re-writing a / constant as a * (1 / constant). Saves 144 bytes of flash and should be a speedup. Signed-off-by: Michael Hope <mlhx@google.com>
This commit is contained in:
parent
c5a5844297
commit
2082ecbb06
1 changed files with 1 additions and 0 deletions
1
Makefile
1
Makefile
|
@ -564,6 +564,7 @@ CFLAGS = $(ARCH_FLAGS) \
|
|||
$(DEBUG_FLAGS) \
|
||||
-std=gnu99 \
|
||||
-Wall -Wextra -Wunsafe-loop-optimizations -Wdouble-promotion \
|
||||
-ffast-math \
|
||||
-ffunction-sections \
|
||||
-fdata-sections \
|
||||
$(DEVICE_FLAGS) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue