mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-06 11:28:15 +00:00
Added SDL_fmod() and SDL_fmodf()
This commit is contained in:
@@ -148,7 +148,7 @@ SDL_ceilf(float x)
|
||||
#if defined(HAVE_CEILF)
|
||||
return ceilf(x);
|
||||
#else
|
||||
return (float)ceil((float)x);
|
||||
return (float)SDL_ceil((float)x);
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -240,6 +240,26 @@ SDL_floorf(float x)
|
||||
#endif
|
||||
}
|
||||
|
||||
double
|
||||
SDL_fmod(double x, double y)
|
||||
{
|
||||
#if defined(HAVE_FMOD)
|
||||
return fmod(x, y);
|
||||
#else
|
||||
return SDL_uclibc_fmod(x, y);
|
||||
#endif
|
||||
}
|
||||
|
||||
float
|
||||
SDL_fmodf(float x, float y)
|
||||
{
|
||||
#if defined(HAVE_FMODF)
|
||||
return fmodf(x, y);
|
||||
#else
|
||||
return (float)SDL_fmod((double)x, (double)y);
|
||||
#endif
|
||||
}
|
||||
|
||||
double
|
||||
SDL_log(double x)
|
||||
{
|
||||
|
Reference in New Issue
Block a user