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:
parent
dafa0d4a70
commit
5deae51801
1 changed files with 9 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue