aboutsummaryrefslogtreecommitdiffstats
path: root/src/gba
diff options
context:
space:
mode:
Diffstat (limited to 'src/gba')
-rw-r--r--src/gba/gba.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gba/gba.h b/src/gba/gba.h
index 797c71e..3a84b89 100644
--- a/src/gba/gba.h
+++ b/src/gba/gba.h
@@ -660,4 +660,12 @@ wait_vsync(void) {
660#define EWRAM_CODE __attribute__((section(".ewram"), long_call)) 660#define EWRAM_CODE __attribute__((section(".ewram"), long_call))
661#define EWRAM_BSS __attribute__((section(".sbss"))) 661#define EWRAM_BSS __attribute__((section(".sbss")))
662 662
663static inline
664void
665memcpy32(u32 *dst, const u32 *src, u32 size) {
666 for (size_t i = 0; i < size / 4; i++) {
667 dst[i] = src[i];
668 }
669}
670
663#endif // GBA_H 671#endif // GBA_H