src/libm/math_libm.h
changeset 7351 668a3dc28361
parent 6885 700f1b25f77f
child 7352 de96caa46c09
     1.1 --- a/src/libm/math_libm.h	Fri Jul 05 21:37:27 2013 -0700
     1.2 +++ b/src/libm/math_libm.h	Fri Jul 05 23:57:19 2013 -0700
     1.3 @@ -18,74 +18,19 @@
     1.4       misrepresented as being the original software.
     1.5    3. This notice may not be removed or altered from any source distribution.
     1.6  */
     1.7 -#include "SDL_config.h"
     1.8 -#include "SDL_stdinc.h"
     1.9  
    1.10  /* Math routines from uClibc: http://www.uclibc.org */
    1.11  
    1.12 -#ifdef HAVE_ATAN
    1.13 -#define atan            SDL_uclibc_atan
    1.14 -#else
    1.15 -#define atan            SDL_atan
    1.16 -#endif
    1.17 -double atan(double x);
    1.18 -
    1.19 -#ifndef HAVE_ATAN2
    1.20 -#define __ieee754_atan2 SDL_atan2
    1.21 -#endif
    1.22 -
    1.23 -#ifdef HAVE_COPYSIGN
    1.24 -#define copysign        SDL_uclibc_copysign
    1.25 -#else
    1.26 -#define copysign        SDL_copysign
    1.27 -#endif
    1.28 -double copysign(double x, double y);
    1.29 -
    1.30 -#ifdef HAVE_COS
    1.31 -#define cos             SDL_uclibc_cos
    1.32 -#else
    1.33 -#define cos             SDL_cos
    1.34 -#endif
    1.35 -double cos(double x);
    1.36 -
    1.37 -#ifdef HAVE_FABS
    1.38 -#define fabs            SDL_uclibc_fabs
    1.39 -#else
    1.40 -#define fabs            SDL_fabs
    1.41 -#endif
    1.42 -double fabs(double x);
    1.43 -
    1.44 -#ifdef HAVE_FLOOR
    1.45 -#define floor           SDL_uclibc_floor
    1.46 -#else
    1.47 -#define floor           SDL_floor
    1.48 -#endif
    1.49 -double floor(double x);
    1.50 -
    1.51 -#ifndef HAVE_LOG
    1.52 -#define __ieee754_log   SDL_log
    1.53 -#endif
    1.54 -
    1.55 -#ifndef HAVE_POW
    1.56 -#define __ieee754_pow   SDL_pow
    1.57 -#endif
    1.58 -
    1.59 -#ifdef HAVE_SCALBN
    1.60 -#define scalbn          SDL_uclibc_scalbn
    1.61 -#else
    1.62 -#define scalbn          SDL_scalbn
    1.63 -#endif
    1.64 -double scalbn(double x, int n);
    1.65 -
    1.66 -#ifdef HAVE_SIN
    1.67 -#define sin             SDL_uclibc_sin
    1.68 -#else
    1.69 -#define sin             SDL_sin
    1.70 -#endif
    1.71 -double sin(double x);
    1.72 -
    1.73 -#ifndef HAVE_SQRT
    1.74 -#define __ieee754_sqrt  SDL_sqrt
    1.75 -#endif
    1.76 +double SDL_uclibc_atan(double x);
    1.77 +double SDL_uclibc_atan2(double y, double x);    
    1.78 +double SDL_uclibc_copysign(double x, double y);       
    1.79 +double SDL_uclibc_cos(double x);         
    1.80 +double SDL_uclibc_fabs(double x);        
    1.81 +double SDL_uclibc_floor(double x);
    1.82 +double SDL_uclibc_log(double x);
    1.83 +double SDL_uclibc_pow(double x, double y);    
    1.84 +double SDL_uclibc_scalbn(double x, int n);
    1.85 +double SDL_uclibc_sin(double x);
    1.86 +double SDL_uclibc_sqrt(double x);
    1.87  
    1.88  /* vi: set ts=4 sw=4 expandtab: */