aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2021-05-29 09:09:25 +0200
committerBad Diode <bd@badd10de.dev>2021-05-29 09:09:25 +0200
commitbe30d1dd9b4c17a0df0a862be95974421bea4c05 (patch)
tree1e146be66b1cbf37c3eea887b758b0535085e3e2 /src
parent450c5a1422b6a976485015085c02bb6b53aee124 (diff)
downloaduxngba-be30d1dd9b4c17a0df0a862be95974421bea4c05.tar.gz
uxngba-be30d1dd9b4c17a0df0a862be95974421bea4c05.zip
Change release optimization mode to -O3
Diffstat (limited to 'src')
-rw-r--r--src/common.h5
-rw-r--r--src/main.c3
2 files changed, 7 insertions, 1 deletions
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.