diff options
Diffstat (limited to 'src/gba')
-rw-r--r-- | src/gba/gba.h | 8 |
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 | ||
663 | static inline | ||
664 | void | ||
665 | memcpy32(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 |