~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Wine Cross Reference
wine/include/msvcrt/math.h

Version: ~ [ wine-1.1.33 ] ~ [ wine-1.1.32 ] ~ [ wine-1.1.31 ] ~ [ wine-1.1.30 ] ~ [ wine-1.1.29 ] ~ [ wine-1.1.28 ] ~ [ wine-1.1.27 ] ~ [ wine-1.1.26 ] ~ [ wine-1.1.25 ] ~ [ wine-1.1.24 ] ~ [ wine-1.1.23 ] ~ [ wine-1.1.22 ] ~ [ wine-1.1.21 ] ~ [ wine-1.1.20 ] ~ [ wine-1.1.19 ] ~ [ wine-1.1.18 ] ~ [ wine-1.1.17 ] ~ [ wine-1.1.16 ] ~ [ wine-1.1.15 ] ~ [ wine-1.1.14 ] ~ [ wine-1.1.13 ] ~ [ wine-1.1.12 ] ~ [ wine-1.1.11 ] ~ [ wine-1.1.10 ] ~ [ wine-1.1.9 ] ~ [ wine-1.1.8 ] ~ [ wine-1.1.7 ] ~ [ wine-1.0.1 ] ~ [ wine-1.1.6 ] ~ [ wine-1.1.5 ] ~ [ wine-1.1.4 ] ~ [ wine-1.1.3 ] ~ [ wine-1.1.2 ] ~ [ wine-1.1.1 ] ~ [ wine-1.1.0 ] ~ [ wine-1.0 ] ~

  1 /*
  2  * Math functions.
  3  *
  4  * Derived from the mingw header written by Colin Peters.
  5  * Modified for Wine use by Hans Leidekker.
  6  * This file is in the public domain.
  7  */
  8 
  9 #ifndef __WINE_MATH_H
 10 #define __WINE_MATH_H
 11 
 12 #include <crtdefs.h>
 13 
 14 #include <pshpack8.h>
 15 
 16 #ifdef __cplusplus
 17 extern "C" {
 18 #endif
 19 
 20 #define _DOMAIN         1       /* domain error in argument */
 21 #define _SING           2       /* singularity */
 22 #define _OVERFLOW       3       /* range overflow */
 23 #define _UNDERFLOW      4       /* range underflow */
 24 #define _TLOSS          5       /* total loss of precision */
 25 #define _PLOSS          6       /* partial loss of precision */
 26 
 27 #ifndef _EXCEPTION_DEFINED
 28 #define _EXCEPTION_DEFINED
 29 struct _exception
 30 {
 31   int     type;
 32   char    *name;
 33   double  arg1;
 34   double  arg2;
 35   double  retval;
 36 };
 37 #endif /* _EXCEPTION_DEFINED */
 38 
 39 #ifndef _COMPLEX_DEFINED
 40 #define _COMPLEX_DEFINED
 41 struct _complex
 42 {
 43   double x;      /* Real part */
 44   double y;      /* Imaginary part */
 45 };
 46 #endif /* _COMPLEX_DEFINED */
 47 
 48 double __cdecl sin(double);
 49 double __cdecl cos(double);
 50 double __cdecl tan(double);
 51 double __cdecl sinh(double);
 52 double __cdecl cosh(double);
 53 double __cdecl tanh(double);
 54 double __cdecl asin(double);
 55 double __cdecl acos(double);
 56 double __cdecl atan(double);
 57 double __cdecl atan2(double, double);
 58 double __cdecl exp(double);
 59 double __cdecl log(double);
 60 double __cdecl log10(double);
 61 double __cdecl pow(double, double);
 62 double __cdecl sqrt(double);
 63 double __cdecl ceil(double);
 64 double __cdecl floor(double);
 65 double __cdecl fabs(double);
 66 double __cdecl ldexp(double, int);
 67 double __cdecl frexp(double, int*);
 68 double __cdecl modf(double, double*);
 69 double __cdecl fmod(double, double);
 70 
 71 double __cdecl hypot(double, double);
 72 double __cdecl j0(double);
 73 double __cdecl j1(double);
 74 double __cdecl jn(int, double);
 75 double __cdecl y0(double);
 76 double __cdecl y1(double);
 77 double __cdecl yn(int, double);
 78 
 79 int __cdecl _matherr(struct _exception*);
 80 double __cdecl _cabs(struct _complex);
 81 
 82 #ifndef HUGE_VAL
 83 #  if defined(__GNUC__) && (__GNUC__ >= 3)
 84 #    define HUGE_VAL    (__extension__ 0x1.0p2047)
 85 #  else
 86 static const union {
 87     unsigned char __c[8];
 88     double __d;
 89 } __huge_val = { { 0, 0, 0, 0, 0, 0, 0xf0, 0x7f } };
 90 #    define HUGE_VAL    (__huge_val.__d)
 91 #  endif
 92 #endif
 93 
 94 #ifdef __cplusplus
 95 }
 96 #endif
 97 
 98 #include <poppack.h>
 99 
100 #endif /* __WINE_MATH_H */
101 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.