diff options
author | PikalaxALT <pikalaxalt@gmail.com> | 2020-06-10 20:11:37 -0400 |
---|---|---|
committer | PikalaxALT <pikalaxalt@gmail.com> | 2020-06-10 20:11:37 -0400 |
commit | 6a1f6122b5422deebf218372cbd9b5684505d4ec (patch) | |
tree | c760610bdce7badc8b18c26d965853256fd8858c /arm9/lib/include/MI_memory.h | |
parent | 9ef47bdd27acdbede94a72d431a931cf0b3f01f9 (diff) | |
parent | 688b3bcd67b47a4ddf593dc0244409b2c5aa10c7 (diff) |
Merge branch 'master' of https://github.com/martmists/pokediamond into pikalax_work
Diffstat (limited to 'arm9/lib/include/MI_memory.h')
-rw-r--r-- | arm9/lib/include/MI_memory.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/arm9/lib/include/MI_memory.h b/arm9/lib/include/MI_memory.h index 0ebb3560..bf6c0ca5 100644 --- a/arm9/lib/include/MI_memory.h +++ b/arm9/lib/include/MI_memory.h @@ -1,6 +1,8 @@ #ifndef NITRO_MI_MEMORY_H_ #define NITRO_MI_MEMORY_H_ +#include "nitro/types.h" + void MI_CpuFill8(void *dest, u8 data, u32 size); void MI_CpuCopy8(void const *src, void *dest, u32 size); static inline void MI_CpuClear8(void *dest, u32 size) { @@ -8,4 +10,16 @@ static inline void MI_CpuClear8(void *dest, u32 size) { } void MIi_CpuCopy16(const void *src, void *dst, u32 size); +void MIi_CpuClear32(u32 data, void *destp, u32 size); + +static inline void MI_CpuFill32(void *dest, u32 data, u32 size) +{ + MIi_CpuClear32(data, dest, size); +} + +static inline void MI_CpuClear32(void *dest, u32 size) +{ + MI_CpuFill32(dest, 0, size); +} + #endif //NITRO_MI_MEMORY_H_ |