Compiling libmad with -O instead of -O2 gives a small speedup (60% boost instead of 66% boost on my test tracks) on ipods. Based on patch #5707 for the ipod 3g by Daniel Ankers, extended to all ipods by me.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10309 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dave Chapman 2006-07-24 19:32:15 +00:00
parent dafa0d4a70
commit 5deae51801

View file

@ -15,7 +15,15 @@ ifdef APPEXTRA
endif
# NOTE: FPM_ define has been moved to global.h
MADOPTS = -UDEBUG -DNDEBUG -O2
MADOPTS = -UDEBUG -DNDEBUG
# libmad is faster on ipods with -O instead of -O2
ifeq ($(findstring IPOD,$(TARGET)),IPOD)
MADOPTS += -O
else
MADOPTS += -O2
endif
CFLAGS = $(INCLUDES) $(GCCOPTS) $(MADOPTS) $(TARGET) $(EXTRA_DEFINES) \
-DMEM=${MEMORYSIZE} $(PROFILE_OPTS)