finish math_util

This commit is contained in:
PikalaxALT
2017-10-28 16:15:36 -04:00
parent 8613e8a54d
commit 6d3778948d
3 changed files with 24 additions and 57 deletions

View File

@@ -60,3 +60,27 @@ s32 sub_81515FC(s32 x, s32 y)
_x *= 256;
return _x / y;
}
s16 sub_8151624(s16 y)
{
s32 x;
x = 0x10000;
return x / y;
}
s16 sub_815163C(u8 s, s16 y)
{
s32 x;
x = 0x100 << s;
return x / y;
}
s32 sub_815165C(s32 y)
{
s64 x;
x = 0x10000;
return x / y;
}