diff options
author | Nils Wallménius <nils@rockbox.org> | 2010-07-12 16:37:03 +0000 |
---|---|---|
committer | Nils Wallménius <nils@rockbox.org> | 2010-07-12 16:37:03 +0000 |
commit | 44f8faa6cbec447dfff044b0fac03bf2c2569700 (patch) | |
tree | 23f2c4ea696746ebca5286430da1f6b41b79dad3 | |
parent | a4cad3d92684187d37c4034cbe185184719baaca (diff) | |
download | rockbox-44f8faa6cbec447dfff044b0fac03bf2c2569700.tar.gz rockbox-44f8faa6cbec447dfff044b0fac03bf2c2569700.zip |
Tune compiler optimizations for libtta, gives a speedup of 1.1MHz on h300 and 0.4MHz on c200v1.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27405 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/codecs/libtta/libtta.make | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/codecs/libtta/libtta.make b/apps/codecs/libtta/libtta.make index a7dcf70ee0..b18d013cbf 100644 --- a/apps/codecs/libtta/libtta.make +++ b/apps/codecs/libtta/libtta.make | |||
@@ -18,7 +18,12 @@ $(TTALIB): $(TTALIB_OBJ) | |||
18 | $(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null | 18 | $(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null |
19 | 19 | ||
20 | TTAFLAGS = $(filter-out -O%,$(CODECFLAGS)) | 20 | TTAFLAGS = $(filter-out -O%,$(CODECFLAGS)) |
21 | TTAFLAGS += -O3 -funroll-loops | 21 | |
22 | ifeq ($(CPU),coldfire) | ||
23 | TTAFLAGS += -O3 | ||
24 | else | ||
25 | TTAFLAGS += -O2 | ||
26 | endif | ||
22 | 27 | ||
23 | $(CODECDIR)/libtta/%.o: $(ROOTDIR)/apps/codecs/libtta/%.c | 28 | $(CODECDIR)/libtta/%.o: $(ROOTDIR)/apps/codecs/libtta/%.c |
24 | $(SILENT)mkdir -p $(dir $@) | 29 | $(SILENT)mkdir -p $(dir $@) |