00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef __wcecompat__MATH_H__
00023 #define __wcecompat__MATH_H__
00024
00025 #include "stddef.h"
00026
00027 #ifdef __cplusplus
00028 extern "C" {
00029 #endif
00030
00031 int __cdecl abs(int);
00032 long __cdecl labs(long);
00033 double __cdecl acos(double);
00034 double __cdecl asin(double);
00035 double __cdecl atan(double);
00036 double __cdecl atan2(double, double);
00037 double __cdecl cos(double);
00038 double __cdecl cosh(double);
00039 double __cdecl exp(double);
00040 double __cdecl fabs(double);
00041 double __cdecl fmod(double, double);
00042 double __cdecl log(double);
00043 double __cdecl log10(double);
00044 double __cdecl pow(double, double);
00045 double __cdecl sin(double);
00046 double __cdecl sinh(double);
00047 double __cdecl sqrt(double);
00048 double __cdecl tan(double);
00049 double __cdecl tanh(double);
00050 double __cdecl _cabs(struct _complex);
00051 double __cdecl ceil(double);
00052 double __cdecl floor(double);
00053 double __cdecl frexp(double, int *);
00054 double __cdecl _hypot(double, double);
00055 double __cdecl _j0(double);
00056 double __cdecl _j1(double);
00057 double __cdecl _jn(int, double);
00058 double __cdecl ldexp(double, int);
00059 _CRTIMP int __cdecl _matherr(struct _exception *);
00060 double __cdecl modf(double, double *);
00061 double __cdecl _y0(double);
00062 double __cdecl _y1(double);
00063 double __cdecl _yn(int, double);
00064
00065
00066 #define acosl(x) ((long double)acos((double)(x)))
00067 #define asinl(x) ((long double)asin((double)(x)))
00068 #define atanl(x) ((long double)atan((double)(x)))
00069 #define atan2l(x,y) ((long double)atan2((double)(x), (double)(y)))
00070 #define ceill(x) ((long double)ceil((double)(x)))
00071 #define cosl(x) ((long double)cos((double)(x)))
00072 #define coshl(x) ((long double)cosh((double)(x)))
00073 #define expl(x) ((long double)exp((double)(x)))
00074 #define fabsl(x) ((long double)fabs((double)(x)))
00075 #define floorl(x) ((long double)floor((double)(x)))
00076 #define fmodl(x,y) ((long double)fmod((double)(x), (double)(y)))
00077 #define frexpl(x,y) ((long double)frexp((double)(x), (y)))
00078 #define hypotl(x,y) ((long double)hypot((double)(x), (double)(y)))
00079 #define ldexpl(x,y) ((long double)ldexp((double)(x), (y)))
00080 #define logl(x) ((long double)log((double)(x)))
00081 #define log10l(x) ((long double)log10((double)(x)))
00082 #define _matherrl _matherr
00083 #define modfl(x,y) ((long double)modf((double)(x), (double *)(y)))
00084 #define powl(x,y) ((long double)pow((double)(x), (double)(y)))
00085 #define sinl(x) ((long double)sin((double)(x)))
00086 #define sinhl(x) ((long double)sinh((double)(x)))
00087 #define sqrtl(x) ((long double)sqrt((double)(x)))
00088 #define tanl(x) ((long double)tan((double)(x)))
00089 #define tanhl(x) ((long double)tanh((double)(x)))
00090
00091 #ifdef __cplusplus
00092 }
00093 #endif
00094
00095 #endif