src/stdlib/SDL_stdlib.c
changeset 11684 eccdf37f8996
parent 11682 b26412a89fbb
child 11811 5d94cb6b24d3
     1.1 --- a/src/stdlib/SDL_stdlib.c	Sat Nov 04 15:53:19 2017 -0700
     1.2 +++ b/src/stdlib/SDL_stdlib.c	Sat Nov 04 17:35:03 2017 -0700
     1.3 @@ -148,7 +148,7 @@
     1.4  #if defined(HAVE_CEILF)
     1.5      return ceilf(x);
     1.6  #else
     1.7 -    return (float)ceil((float)x);
     1.8 +    return (float)SDL_ceil((float)x);
     1.9  #endif
    1.10  }
    1.11  
    1.12 @@ -241,6 +241,26 @@
    1.13  }
    1.14  
    1.15  double
    1.16 +SDL_fmod(double x, double y)
    1.17 +{
    1.18 +#if defined(HAVE_FMOD)
    1.19 +    return fmod(x, y);
    1.20 +#else
    1.21 +    return SDL_uclibc_fmod(x, y);
    1.22 +#endif
    1.23 +}
    1.24 +
    1.25 +float
    1.26 +SDL_fmodf(float x, float y)
    1.27 +{
    1.28 +#if defined(HAVE_FMODF)
    1.29 +    return fmodf(x, y);
    1.30 +#else
    1.31 +    return (float)SDL_fmod((double)x, (double)y);
    1.32 +#endif
    1.33 +}
    1.34 +
    1.35 +double
    1.36  SDL_log(double x)
    1.37  {
    1.38  #if defined(HAVE_LOG)