aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--src/common.h5
-rw-r--r--src/main.c3
3 files changed, 8 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 100c861..3f68019 100644
--- a/Makefile
+++ b/Makefile
@@ -45,7 +45,7 @@ CFLAGS += $(INC_FLAGS)
45CFLAGS += $(CONFIG) 45CFLAGS += $(CONFIG)
46LDFLAGS := $(ARCH) $(SPECS) 46LDFLAGS := $(ARCH) $(SPECS)
47LDLIBS := $(LIBGBA) 47LDLIBS := $(LIBGBA)
48RELEASE_CFLAGS := -DNDEBUG -O2 48RELEASE_CFLAGS := -DNDEBUG -O3
49DEBUG_CFLAGS := -DDEBUG -O2 -g 49DEBUG_CFLAGS := -DDEBUG -O2 -g
50 50
51.PHONY: clean run 51.PHONY: clean run
diff --git a/src/common.h b/src/common.h
index 12114d7..0d6c89f 100644
--- a/src/common.h
+++ b/src/common.h
@@ -260,6 +260,11 @@ u32 profile_stop(void) {
260 return (TIMER_DATA_3 << 16) | TIMER_DATA_2; 260 return (TIMER_DATA_3 << 16) | TIMER_DATA_2;
261} 261}
262 262
263static inline
264u32 profile_measure(void) {
265 return (TIMER_DATA_3 << 16) | TIMER_DATA_2;
266}
267
263// 268//
264// Input handling. 269// Input handling.
265// 270//
diff --git a/src/main.c b/src/main.c
index 255c790..9a22000 100644
--- a/src/main.c
+++ b/src/main.c
@@ -36,7 +36,7 @@ WITH REGARD TO THIS SOFTWARE.
36#ifdef PROF_ENABLE 36#ifdef PROF_ENABLE
37#if PROF_ENABLE == 0 37#if PROF_ENABLE == 0
38#define PROF(F,VAR) (profile_start(),(F),(VAR) = profile_stop()) 38#define PROF(F,VAR) (profile_start(),(F),(VAR) = profile_stop())
39#else 39#elif PROF_ENABLE == 1
40#define PROF(F,VAR) (profile_start(),(F),(VAR) = MAX(profile_stop(), (VAR))) 40#define PROF(F,VAR) (profile_start(),(F),(VAR) = MAX(profile_stop(), (VAR)))
41#endif 41#endif
42#define PROF_SHOW(X,Y) \ 42#define PROF_SHOW(X,Y) \
@@ -416,6 +416,7 @@ int main(void) {
416 txt_init(1, TEXT_LAYER); 416 txt_init(1, TEXT_LAYER);
417 txt_position(0,0); 417 txt_position(0,0);
418 418
419 // Initialize sound mixer.
419 init_sound(); 420 init_sound();
420 421
421 // Main loop. 422 // Main loop.