mirror of
https://github.com/encounter/SDL.git
synced 2025-12-12 22:56:09 +00:00
Added SDL_round(), contributed by Benoit Pierre - thanks!
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user