mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-20 11:48:29 +00:00
SDL_log10
This commit is contained in:
parent
bd0def06ee
commit
11c348b4d7
19 changed files with 152 additions and 3 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue