mirror of
https://github.com/zeldaret/oot.git
synced 2024-11-14 21:40:03 +00:00
14 lines
290 B
C
14 lines
290 B
C
|
#include <ultra64.h>
|
||
|
#include <global.h>
|
||
|
|
||
|
// memset used in __osMalloc, z_quake, z_view, and z_camera
|
||
|
void* func_80106860(void* ptr, s32 val, size_t size) {
|
||
|
u8* sp4 = ptr;
|
||
|
register s32 a3;
|
||
|
|
||
|
for (a3 = size--; a3 != 0; a3 = size--) {
|
||
|
*sp4++ = val;
|
||
|
}
|
||
|
return ptr;
|
||
|
}
|