Implement rough versions of mod, remainder, copy_sign

This commit is contained in:
gingerBill 2016-05-01 02:13:07 +01:00
parent c6d3f17e27
commit b8dff9481a
1 changed files with 1 additions and 1 deletions

View File

@ -796,7 +796,7 @@ gb_mod(float x, float y)
{
float result;
y = gb_abs(y);
result = gb_remainder(gb_abs(x), (y = gb_abs(y)));
result = gb_remainder(gb_abs(x), y);
if (gb_sign(result)) result += y;
return gb_copy_sign(result, x);
}