src/stdlib/SDL_stdlib.c
changeset 11852 c3fc99758ad2
parent 11811 5d94cb6b24d3
child 12072 1e46699fa470
equal deleted inserted replaced
11851:8f295e7acefd 11852:c3fc99758ad2
   275 {
   275 {
   276 #if defined(HAVE_LOGF)
   276 #if defined(HAVE_LOGF)
   277     return logf(x);
   277     return logf(x);
   278 #else
   278 #else
   279     return (float)SDL_log((double)x);
   279     return (float)SDL_log((double)x);
       
   280 #endif
       
   281 }
       
   282 
       
   283 double
       
   284 SDL_log10(double x)
       
   285 {
       
   286 #if defined(HAVE_LOG10)
       
   287     return log10(x);
       
   288 #else
       
   289     return SDL_uclibc_log10(x);
       
   290 #endif
       
   291 }
       
   292 
       
   293 float
       
   294 SDL_log10f(float x)
       
   295 {
       
   296 #if defined(HAVE_LOG10F)
       
   297     return log10f(x);
       
   298 #else
       
   299     return (float)SDL_log10((double)x);
   280 #endif
   300 #endif
   281 }
   301 }
   282 
   302 
   283 double
   303 double
   284 SDL_pow(double x, double y)
   304 SDL_pow(double x, double y)