summaryrefslogtreecommitdiff
path: root/lib/rbcodec/codecs/libspc/spc_cpu.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2013-05-18 01:45:03 -0400
committerMichael Sevakis <jethead71@rockbox.org>2013-05-21 00:02:14 -0400
commit87021f7c0ac4620eafd185ff11905ee643f72b6c (patch)
tree03ae48f3d999cd8743af40cc5df933f64f6df2d2 /lib/rbcodec/codecs/libspc/spc_cpu.c
parenta17d6de5bc727b0bb55764ecef2605ae689e8dab (diff)
downloadrockbox-87021f7c0ac4620eafd185ff11905ee643f72b6c.tar.gz
rockbox-87021f7c0ac4620eafd185ff11905ee643f72b6c.zip
SPC Codec: Refactor for CPU and clean up some things.
CPU optimization gets its own files in which to fill-in optimizable routines. Some pointless #if 0's for profiling need removal. Those macros are empty if not profiling. Force some functions that are undesirable to be force-inlined by the compiler to be not inlined. Change-Id: Ia7b7e45380d7efb20c9b1a4d52e05db3ef6bbaab
Diffstat (limited to 'lib/rbcodec/codecs/libspc/spc_cpu.c')
-rw-r--r--lib/rbcodec/codecs/libspc/spc_cpu.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/rbcodec/codecs/libspc/spc_cpu.c b/lib/rbcodec/codecs/libspc/spc_cpu.c
index 23dcc257de..dbbc6cda0f 100644
--- a/lib/rbcodec/codecs/libspc/spc_cpu.c
+++ b/lib/rbcodec/codecs/libspc/spc_cpu.c
@@ -113,9 +113,7 @@ enum { st_c = 0x01 };
113 113
114long CPU_run( THIS, long start_time ) 114long CPU_run( THIS, long start_time )
115{ 115{
116#if 0
117 ENTER_TIMER(cpu); 116 ENTER_TIMER(cpu);
118#endif
119 117
120 register long spc_time_ = start_time; 118 register long spc_time_ = start_time;
121 119
@@ -1036,9 +1034,7 @@ out_of_time:
1036 this->r.x = (uint8_t) x; 1034 this->r.x = (uint8_t) x;
1037 this->r.y = (uint8_t) y; 1035 this->r.y = (uint8_t) y;
1038 1036
1039#if 0
1040 EXIT_TIMER(cpu); 1037 EXIT_TIMER(cpu);
1041#endif
1042 return spc_time_; 1038 return spc_time_;
1043} 1039}
1044 1040