mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-14 18:27:50 +00:00
Added SDL_round(), contributed by Benoit Pierre - thanks!
This commit is contained in:
parent
d673d8c389
commit
4e7db78ed9
19 changed files with 29 additions and 4 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue