1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2024-12-01 15:26:01 +00:00
This commit is contained in:
wed 2020-03-20 11:25:53 +11:00
parent a01f868a1a
commit 8a74686890
2 changed files with 4 additions and 3 deletions

View file

@ -846,7 +846,7 @@ void func_800775D8();
s32 func_800775E4(); s32 func_800775E4();
void func_800775F0(u16); void func_800775F0(u16);
// ? func_80077600(?); // ? func_80077600(?);
void Lib_MemSet(u8 dest[], size_t size, u8 val); void Lib_MemSet(u8* dest, size_t size, u8 val);
f32 Math_Coss(s16 angle); f32 Math_Coss(s16 angle);
f32 Math_Sins(s16 angle); f32 Math_Sins(s16 angle);
s32 Math_ApproxUpdateScaledS(s16* fp, s16 target, s16 step); s32 Math_ApproxUpdateScaledS(s16* fp, s16 target, s16 step);

View file

@ -1,10 +1,11 @@
#include <ultra64.h> #include <ultra64.h>
#include <global.h> #include <global.h>
void Lib_MemSet(u8 dest[], size_t size, u8 val) void Lib_MemSet(u8* dest, size_t size, u8 val)
{ {
size_t i = 0; u32 i = 0;
// TODO: Convert this to while/for if possible
if (i == size) return; if (i == size) return;
do { do {
*dest++ = val; *dest++ = val;