mirror of
https://github.com/encounter/SDL.git
synced 2025-12-09 05:27:48 +00:00
SDL_log10
This commit is contained in:
@@ -280,6 +280,26 @@ SDL_logf(float x)
|
||||
#endif
|
||||
}
|
||||
|
||||
double
|
||||
SDL_log10(double x)
|
||||
{
|
||||
#if defined(HAVE_LOG10)
|
||||
return log10(x);
|
||||
#else
|
||||
return SDL_uclibc_log10(x);
|
||||
#endif
|
||||
}
|
||||
|
||||
float
|
||||
SDL_log10f(float x)
|
||||
{
|
||||
#if defined(HAVE_LOG10F)
|
||||
return log10f(x);
|
||||
#else
|
||||
return (float)SDL_log10((double)x);
|
||||
#endif
|
||||
}
|
||||
|
||||
double
|
||||
SDL_pow(double x, double y)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user