summaryrefslogtreecommitdiff
path: root/src/math_util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/math_util.c')
-rw-r--r--src/math_util.c24
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;
+}