1 2 3 4 5 6 7 8 9 10 11 12
#include "libm/fmodf.h" f32 fmodf(f32 x, f32 y) { s32 n; if (y == 0.0f) { return 0.0f; } n = x / y; return x - (n * y); }