From 2288e6d101397143b08ff64a38baaeedd7f2c3dd Mon Sep 17 00:00:00 2001 From: Gogume1er Date: Thu, 3 Jun 2021 12:08:13 +0200 Subject: replace inlined clear with compiler clear --- arm9/src/unk_020851B8.c | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'arm9/src') 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; } -- cgit v1.2.3