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