summaryrefslogtreecommitdiff
path: root/src/malloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/malloc.c')
-rw-r--r--src/malloc.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/malloc.c b/src/malloc.c
index 49f940b7b..8bfaf5ef0 100644
--- a/src/malloc.c
+++ b/src/malloc.c
@@ -132,16 +132,10 @@ void *AllocZeroedInternal(void *heapStart, u32 size)
void *mem = AllocInternal(heapStart, size);
if (mem != NULL) {
- u32 zero;
- u32 sizeInWords;
-
if (size & 3)
size = 4 * ((size / 4) + 1);
- zero = 0;
- sizeInWords = (size << 9) >> 11;
-
- CpuSet(&zero, mem, CPU_SET_32BIT | CPU_SET_SRC_FIX | sizeInWords);
+ CpuFill32(mem, 0, size);
}
return mem;