SDL_log10

This commit is contained in:
Ethan Lee 2018-01-17 11:53:09 -05:00
parent bd0def06ee
commit 11c348b4d7
19 changed files with 152 additions and 3 deletions

View file

@ -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)
{