winex11.drv: Support _KDE_NET_WM_STATE_SKIP_SWITCHER.
[wine.git] / include / msvcrt / fenv.h
blob2039a1fb4c8e55e32e50fe29812420ca5bf57b4d
1 /**
2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the Wine project.
4 */
6 #ifndef _INC_FENV
7 #define _INC_FENV
9 #include <float.h>
11 #define FE_TONEAREST _RC_NEAR
12 #define FE_UPWARD _RC_UP
13 #define FE_DOWNWARD _RC_DOWN
14 #define FE_TOWARDZERO _RC_CHOP
16 #define FE_INEXACT _SW_INEXACT
17 #define FE_UNDERFLOW _SW_UNDERFLOW
18 #define FE_OVERFLOW _SW_OVERFLOW
19 #define FE_DIVBYZERO _SW_ZERODIVIDE
20 #define FE_INVALID _SW_INVALID
21 #define FE_ALL_EXCEPT (FE_DIVBYZERO | FE_INEXACT | FE_INVALID | FE_OVERFLOW | FE_UNDERFLOW)
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
27 typedef struct
29 __msvcrt_ulong _Fe_ctl;
30 __msvcrt_ulong _Fe_stat;
31 } fenv_t;
33 typedef __msvcrt_ulong fexcept_t;
35 _ACRTIMP int __cdecl fegetenv(fenv_t*);
36 _ACRTIMP int __cdecl fesetenv(const fenv_t*);
37 _ACRTIMP int __cdecl fegetexceptflag(fexcept_t*, int);
38 _ACRTIMP int __cdecl fegetround(void);
39 _ACRTIMP int __cdecl feholdexcept(fenv_t*);
40 _ACRTIMP int __cdecl fesetround(int);
41 _ACRTIMP int __cdecl fesetexceptflag(const fexcept_t*, int);
42 _ACRTIMP int __cdecl feclearexcept(int);
43 _ACRTIMP int __cdecl fetestexcept(int);
45 #ifdef __cplusplus
47 #endif
49 #endif /* _INC_FENV */