diff options
author | PikalaxALT <pikalaxalt@gmail.com> | 2017-10-28 16:15:36 -0400 |
---|---|---|
committer | PikalaxALT <pikalaxalt@gmail.com> | 2017-10-28 16:15:36 -0400 |
commit | 6d3778948d39884d5d5069837b047cd95c9f5a31 (patch) | |
tree | 61e9e7f2dc2e4eeff798996eb4819c281acca4d4 /src/math_util.c | |
parent | 8613e8a54d1981dc8f204ecae139726144e640ed (diff) |
finish math_util
Diffstat (limited to 'src/math_util.c')
-rw-r--r-- | src/math_util.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/math_util.c b/src/math_util.c index 3eb995d27..83935454a 100644 --- a/src/math_util.c +++ b/src/math_util.c @@ -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; +} |