winealsa.drv: Remove a few unneeded initialisations and unused variables.
[wine/hacks.git] / include / msvcrt / float.h
blobb656e0960a2d938c83f3f4910c23268037d423cd
1 /*
2 * Floating point arithmetic.
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 */
9 #ifndef __WINE_FLOAT_H
10 #define __WINE_FLOAT_H
12 #include <crtdefs.h>
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
18 #define DBL_DIG 15
19 #define DBL_EPSILON 2.2204460492503131e-016
20 #define DBL_MANT_DIG 53
21 #define DBL_MAX 1.7976931348623158e+308
22 #define DBL_MAX_10_EXP 308
23 #define DBL_MAX_EXP 1024
24 #define DBL_MIN 2.2250738585072014e-308
25 #define DBL_MIN_10_EXP (-307)
26 #define DBL_MIN_EXP (-1021)
28 #define _DBL_RADIX 2
29 #define _DBL_ROUNDS 1
31 #define DBL_RADIX _DBL_RADIX
32 #define DBL_ROUNDS _DBL_ROUNDS
34 #define FLT_DIG 6
35 #define FLT_EPSILON 1.192092896e-07F
36 #define FLT_MANT_DIG 24
37 #define FLT_MAX 3.402823466e+38F
38 #define FLT_MAX_10_EXP 38
39 #define FLT_MAX_EXP 128
40 #define FLT_MIN 1.175494351e-38F
41 #define FLT_MIN_10_EXP (-37)
42 #define FLT_MIN_EXP (-125)
44 #define FLT_RADIX 2
45 #define FLT_ROUNDS 1
47 #define LDBL_DIG DBL_DIG
48 #define LDBL_EPSILON DBL_EPSILON
49 #define LDBL_MANT_DIG DBL_MANT_DIG
50 #define LDBL_MAX DBL_MAX
51 #define LDBL_MAX_10_EXP DBL_MAX_10_EXP
52 #define LDBL_MAX_EXP DBL_MAX_EXP
53 #define LDBL_MIN DBL_MIN
54 #define LDBL_MIN_10_EXP DBL_MIN_10_EXP
55 #define LDBL_MIN_EXP DBL_MIN_EXP
57 #define _LDBL_RADIX _DBL_RADIX
58 #define _LDBL_ROUNDS _DBL_ROUNDS
60 #define LDBL_RADIX _LDBL_RADIX
61 #define LDBL_ROUNDS _LDBL_ROUNDS
63 /* _controlfp masks and bitflags - x86 only so far */
64 #ifdef __i386__
66 /* Control word masks for unMask */
67 #define _MCW_EM 0x0008001F /* Error masks */
68 #define _MCW_IC 0x00040000 /* Infinity */
69 #define _MCW_RC 0x00000300 /* Rounding */
70 #define _MCW_PC 0x00030000 /* Precision */
72 /* Control word values for unNew (use with related unMask above) */
73 #define _EM_INVALID 0x00000010
74 #define _EM_DENORMAL 0x00080000
75 #define _EM_ZERODIVIDE 0x00000008
76 #define _EM_OVERFLOW 0x00000004
77 #define _EM_UNDERFLOW 0x00000002
78 #define _EM_INEXACT 0x00000001
79 #define _IC_AFFINE 0x00040000
80 #define _IC_PROJECTIVE 0x00000000
81 #define _RC_CHOP 0x00000300
82 #define _RC_UP 0x00000200
83 #define _RC_DOWN 0x00000100
84 #define _RC_NEAR 0x00000000
85 #define _PC_24 0x00020000
86 #define _PC_53 0x00010000
87 #define _PC_64 0x00000000
88 #endif
90 /* _statusfp bit flags */
91 #define _SW_INEXACT 0x00000001 /* inexact (precision) */
92 #define _SW_UNDERFLOW 0x00000002 /* underflow */
93 #define _SW_OVERFLOW 0x00000004 /* overflow */
94 #define _SW_ZERODIVIDE 0x00000008 /* zero divide */
95 #define _SW_INVALID 0x00000010 /* invalid */
97 #define _SW_UNEMULATED 0x00000040 /* unemulated instruction */
98 #define _SW_SQRTNEG 0x00000080 /* square root of a neg number */
99 #define _SW_STACKOVERFLOW 0x00000200 /* FP stack overflow */
100 #define _SW_STACKUNDERFLOW 0x00000400 /* FP stack underflow */
102 #define _SW_DENORMAL 0x00080000 /* denormal status bit */
104 /* fpclass constants */
105 #define _FPCLASS_SNAN 0x0001 /* Signaling "Not a Number" */
106 #define _FPCLASS_QNAN 0x0002 /* Quiet "Not a Number" */
107 #define _FPCLASS_NINF 0x0004 /* Negative Infinity */
108 #define _FPCLASS_NN 0x0008 /* Negative Normal */
109 #define _FPCLASS_ND 0x0010 /* Negative Denormal */
110 #define _FPCLASS_NZ 0x0020 /* Negative Zero */
111 #define _FPCLASS_PZ 0x0040 /* Positive Zero */
112 #define _FPCLASS_PD 0x0080 /* Positive Denormal */
113 #define _FPCLASS_PN 0x0100 /* Positive Normal */
114 #define _FPCLASS_PINF 0x0200 /* Positive Infinity */
116 /* floating point error signals */
117 #define _FPE_INVALID 0x81
118 #define _FPE_DENORMAL 0x82
119 #define _FPE_ZERODIVIDE 0x83
120 #define _FPE_OVERFLOW 0x84
121 #define _FPE_UNDERFLOW 0x85
122 #define _FPE_INEXACT 0x86
123 #define _FPE_UNEMULATED 0x87
124 #define _FPE_SQRTNEG 0x88
125 #define _FPE_STACKOVERFLOW 0x8a
126 #define _FPE_STACKUNDERFLOW 0x8b
127 #define _FPE_EXPLICITGEN 0x8c
129 double __cdecl _copysign (double, double);
130 double __cdecl _chgsign (double);
131 double __cdecl _scalb(double, long);
132 double __cdecl _logb(double);
133 double __cdecl _nextafter(double, double);
134 int __cdecl _finite(double);
135 int __cdecl _isnan(double);
136 int __cdecl _fpclass(double);
138 #ifdef __cplusplus
140 #endif
142 #endif /* __WINE_FLOAT_H */