ymath.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /**
  2. * This file has no copyright assigned and is placed in the Public Domain.
  3. * This file is part of the mingw-w64 runtime package.
  4. * No warranty is given; refer to the file DISCLAIMER.PD within this package.
  5. */
  6. #ifndef _YMATH
  7. #define _YMATH
  8. #include <yvals.h>
  9. _C_STD_BEGIN
  10. _C_LIB_DECL
  11. #pragma pack(push,_CRT_PACKING)
  12. #define _DENORM (-2)
  13. #define _FINITE (-1)
  14. #define _INFCODE 1
  15. #define _NANCODE 2
  16. #define _FE_DIVBYZERO 0x04
  17. #define _FE_INEXACT 0x20
  18. #define _FE_INVALID 0x01
  19. #define _FE_OVERFLOW 0x08
  20. #define _FE_UNDERFLOW 0x10
  21. typedef union {
  22. unsigned short _Word[8];
  23. float _Float;
  24. double _Double;
  25. long double _Long_double;
  26. } _Dconst;
  27. void __cdecl _Feraise(int);
  28. _CRTIMP double __cdecl _Cosh(double,double);
  29. _CRTIMP short __cdecl _Dtest(double *);
  30. _CRTIMP short __cdecl _Exp(double *,double,short);
  31. _CRTIMP double __cdecl _Sinh(double,double);
  32. extern _CRTIMP _Dconst _Denorm,_Hugeval,_Inf,_Nan,_Snan;
  33. _CRTIMP float __cdecl _FCosh(float,float);
  34. _CRTIMP short __cdecl _FDtest(float *);
  35. _CRTIMP short __cdecl _FExp(float *,float,short);
  36. _CRTIMP float __cdecl _FSinh(float,float);
  37. extern _CRTIMP _Dconst _FDenorm,_FInf,_FNan,_FSnan;
  38. _CRTIMP long double __cdecl _LCosh(long double,long double);
  39. _CRTIMP short __cdecl _LDtest(long double *);
  40. _CRTIMP short __cdecl _LExp(long double *,long double,short);
  41. _CRTIMP long double __cdecl _LSinh(long double,long double);
  42. extern _CRTIMP _Dconst _LDenorm,_LInf,_LNan,_LSnan;
  43. _END_C_LIB_DECL
  44. _C_STD_END
  45. #pragma pack(pop)
  46. #endif