summaryrefslogtreecommitdiff
path: root/arm9/src
diff options
context:
space:
mode:
Diffstat (limited to 'arm9/src')
-rw-r--r--arm9/src/unk_020851B8.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/arm9/src/unk_020851B8.c b/arm9/src/unk_020851B8.c
index 8608cc57..592d16d6 100644
--- a/arm9/src/unk_020851B8.c
+++ b/arm9/src/unk_020851B8.c
@@ -3,26 +3,10 @@
#include "constants/items.h"
#include "heap.h"
-static inline void _clear(u8 *ptr)
-{
- *ptr++ = 0;
- *ptr++ = 0;
- *ptr++ = 0;
- *ptr++ = 0;
- *ptr++ = 0;
- *ptr++ = 0;
- *ptr++ = 0;
- *ptr++ = 0;
- *ptr++ = 0;
- *ptr++ = 0;
- *ptr++ = 0;
- *ptr++ = 0;
-}
-
THUMB_FUNC struct UnkStruct_020851B8 *FUN_020851B8(u32 heap_id)
{
struct UnkStruct_020851B8 *ptr = AllocFromHeap(heap_id, sizeof(struct UnkStruct_020851B8));
- _clear((u8 *)ptr);
+ __builtin__clear(ptr, sizeof(struct UnkStruct_020851B8));
return ptr;
}