From 5f47e14f6ab4e3b346de1d62c65452e674edbebe Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Wed, 19 Apr 2023 10:05:03 +0200 Subject: Add optimized 1bpp drawing function --- src/common.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/common.h') diff --git a/src/common.h b/src/common.h index 0d6c89f..e62c78c 100644 --- a/src/common.h +++ b/src/common.h @@ -745,4 +745,10 @@ wait_vsync(void) { #define EWRAM_CODE __attribute__((section(".ewram"), long_call)) #define EWRAM_BSS __attribute__((section(".sbss"))) +// +// Compiler hints. +// + +#define UNROLL_LOOPS __attribute__((optimize("unroll-loops"))) + #endif // GBAEXP_COMMON_H -- cgit v1.2.1