mirror of
https://github.com/zeldaret/oot
synced 2026-05-24 15:21:04 -04:00
Name fmodf (#1162)
This commit is contained in:
@@ -1,12 +0,0 @@
|
||||
#include "global.h"
|
||||
|
||||
// fmodf?
|
||||
f32 func_801067F0(f32 arg0, f32 arg1) {
|
||||
s32 sp4;
|
||||
|
||||
if (arg1 == 0.0f) {
|
||||
return 0.0f;
|
||||
}
|
||||
sp4 = arg0 / arg1;
|
||||
return arg0 - (sp4 * arg1);
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
#include "global.h"
|
||||
|
||||
f32 fmodf(f32 x, f32 y) {
|
||||
s32 quot;
|
||||
|
||||
if (y == 0.0f) {
|
||||
return 0.0f;
|
||||
}
|
||||
quot = x / y;
|
||||
|
||||
return x - (quot * y);
|
||||
}
|
||||
Reference in New Issue
Block a user