src/stdlib/SDL_stdlib.c
changeset 12072 1e46699fa470
parent 11852 c3fc99758ad2
child 12073 59004900db7f
equal deleted inserted replaced
12071:1f8341f599c4 12072:1e46699fa470
   195 {
   195 {
   196 #if defined(HAVE_COSF)
   196 #if defined(HAVE_COSF)
   197     return cosf(x);
   197     return cosf(x);
   198 #else
   198 #else
   199     return (float)SDL_cos((double)x);
   199     return (float)SDL_cos((double)x);
       
   200 #endif
       
   201 }
       
   202 
       
   203 double
       
   204 SDL_exp(double x)
       
   205 {
       
   206 #if defined(HAVE_EXP)
       
   207     return exp(x);
       
   208 #else
       
   209     return SDL_uclibc_exp(x);
       
   210 #endif
       
   211 }
       
   212 
       
   213 float
       
   214 SDL_expf(float x)
       
   215 {
       
   216 #if defined(HAVE_EXPF)
       
   217     return expf(x);
       
   218 #else
       
   219     return (float)SDL_uclibc_exp((double)x);
   200 #endif
   220 #endif
   201 }
   221 }
   202 
   222 
   203 double
   223 double
   204 SDL_fabs(double x)
   224 SDL_fabs(double x)