src/stdlib/SDL_stdlib.c
changeset 8840 9b6ddcbdea65
parent 8583 fb2933ca805f
child 9015 45f11ff360a8
     1.1 --- a/src/stdlib/SDL_stdlib.c	Sat Jun 07 17:31:50 2014 -0700
     1.2 +++ b/src/stdlib/SDL_stdlib.c	Sat Jun 07 18:20:01 2014 -0700
     1.3 @@ -211,6 +211,36 @@
     1.4  #endif
     1.5  }
     1.6  
     1.7 +float
     1.8 +SDL_sqrtf(float x)
     1.9 +{
    1.10 +#if defined(HAVE_SQRTF)
    1.11 +    return sqrtf(x);
    1.12 +#else
    1.13 +    return (float)SDL_sqrt((double)x);
    1.14 +#endif
    1.15 +}
    1.16 +
    1.17 +double
    1.18 +SDL_tan(double x)
    1.19 +{
    1.20 +#if defined(HAVE_TAN)
    1.21 +    return tan(x);
    1.22 +#else
    1.23 +    return SDL_uclibc_tan(x);
    1.24 +#endif
    1.25 +}
    1.26 +
    1.27 +float
    1.28 +SDL_tanf(float x)
    1.29 +{
    1.30 +#if defined(HAVE_TANF)
    1.31 +    return tanf(x);
    1.32 +#else
    1.33 +    return (float)SDL_tan((double)x);
    1.34 +#endif
    1.35 +}
    1.36 +
    1.37  int SDL_abs(int x)
    1.38  {
    1.39  #ifdef HAVE_ABS