src/stdlib/SDL_stdlib.c
changeset 11684 eccdf37f8996
parent 11682 b26412a89fbb
child 11811 5d94cb6b24d3
equal deleted inserted replaced
11683:48bcba563d9c 11684:eccdf37f8996
   146 SDL_ceilf(float x)
   146 SDL_ceilf(float x)
   147 {
   147 {
   148 #if defined(HAVE_CEILF)
   148 #if defined(HAVE_CEILF)
   149     return ceilf(x);
   149     return ceilf(x);
   150 #else
   150 #else
   151     return (float)ceil((float)x);
   151     return (float)SDL_ceil((float)x);
   152 #endif
   152 #endif
   153 }
   153 }
   154 
   154 
   155 double
   155 double
   156 SDL_copysign(double x, double y)
   156 SDL_copysign(double x, double y)
   235 {
   235 {
   236 #if defined(HAVE_FLOORF)
   236 #if defined(HAVE_FLOORF)
   237     return floorf(x);
   237     return floorf(x);
   238 #else
   238 #else
   239     return (float)SDL_floor((double)x);
   239     return (float)SDL_floor((double)x);
       
   240 #endif
       
   241 }
       
   242 
       
   243 double
       
   244 SDL_fmod(double x, double y)
       
   245 {
       
   246 #if defined(HAVE_FMOD)
       
   247     return fmod(x, y);
       
   248 #else
       
   249     return SDL_uclibc_fmod(x, y);
       
   250 #endif
       
   251 }
       
   252 
       
   253 float
       
   254 SDL_fmodf(float x, float y)
       
   255 {
       
   256 #if defined(HAVE_FMODF)
       
   257     return fmodf(x, y);
       
   258 #else
       
   259     return (float)SDL_fmod((double)x, (double)y);
   240 #endif
   260 #endif
   241 }
   261 }
   242 
   262 
   243 double
   263 double
   244 SDL_log(double x)
   264 SDL_log(double x)