mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-12 02:44:54 +00:00
Name fmodf (#1162)
This commit is contained in:
parent
ed6ec5bceb
commit
362bc5e613
5 changed files with 15 additions and 15 deletions
12
src/code/fmodf.c
Normal file
12
src/code/fmodf.c
Normal file
|
@ -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);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue