Added SDL_round(), contributed by Benoit Pierre - thanks!

This commit is contained in:
Sam Lantinga
2014-08-16 23:23:15 -07:00
parent d673d8c389
commit 4e7db78ed9
19 changed files with 29 additions and 4 deletions

View File

@@ -169,6 +169,16 @@ SDL_pow(double x, double y)
#endif /* HAVE_POW */
}
double
SDL_round(double x)
{
#if defined(HAVE_ROUND)
return round(x);
#else
return SDL_uclibc_round(x);
#endif /* HAVE_ROUND */
}
double
SDL_scalbn(double x, int n)
{