some drawing code C optimisations

This commit is contained in:
kub 2019-08-25 17:33:13 +02:00
parent f6b4a9ca53
commit f740428b81
5 changed files with 54 additions and 40 deletions

View file

@ -5,6 +5,10 @@ CFLAGS += -I.
ifeq "$(DEBUG)" "0"
CFLAGS += -O3 -DNDEBUG
endif
ifeq ("$(PLATFORM)",$(filter "$(PLATFORM)","gp2x" "opendingux" "rpi1"))
# very small caches, avoid optimization options making the binary much bigger
CFLAGS += -finline-limit=42 -fno-unroll-loops -fno-ipa-cp-clone # -fno-ipa-cp
endif
# This is actually needed, bevieve me.
# If you really have to disable this, set NO_ALIGN_FUNCTIONS elsewhere.