]>
Commit | Line | Data |
---|---|---|
1c79356b A |
1 | /* |
2 | * Copyright (c) 2000 Apple Computer, Inc. All rights reserved. | |
3 | * | |
4 | * @APPLE_LICENSE_HEADER_START@ | |
5 | * | |
d7e50217 | 6 | * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved. |
1c79356b | 7 | * |
d7e50217 A |
8 | * This file contains Original Code and/or Modifications of Original Code |
9 | * as defined in and that are subject to the Apple Public Source License | |
10 | * Version 2.0 (the 'License'). You may not use this file except in | |
11 | * compliance with the License. Please obtain a copy of the License at | |
12 | * http://www.opensource.apple.com/apsl/ and read it before using this | |
13 | * file. | |
14 | * | |
15 | * The Original Code and all software distributed under the License are | |
16 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER | |
1c79356b A |
17 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, |
18 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, | |
d7e50217 A |
19 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. |
20 | * Please see the License for the specific language governing rights and | |
21 | * limitations under the License. | |
1c79356b A |
22 | * |
23 | * @APPLE_LICENSE_HEADER_END@ | |
24 | */ | |
25 | /* | |
26 | * @OSF_COPYRIGHT@ | |
27 | * | |
28 | */ | |
29 | /* | |
30 | * HISTORY | |
31 | * | |
32 | * Revision 1.1.1.1 1998/09/22 21:05:51 wsanchez | |
33 | * Import of Mac OS X kernel (~semeria) | |
34 | * | |
35 | * Revision 1.1.1.1 1998/03/07 02:25:35 wsanchez | |
36 | * Import of OSF Mach kernel (~mburg) | |
37 | * | |
38 | * Revision 1.1.2.1 1996/10/10 13:56:15 yp | |
39 | * Created. | |
40 | * [96/10/10 yp] | |
41 | * | |
42 | * $EndLog$ | |
43 | */ | |
44 | ||
45 | #ifndef _IEEEFLOAT_H_ | |
46 | #define _IEEEFLOAT_H_ | |
47 | ||
48 | /* | |
49 | * Copyright (c) 1989, 1993 | |
50 | * The Regents of the University of California. All rights reserved. | |
51 | * | |
52 | * Redistribution and use in source and binary forms, with or without | |
53 | * modification, are permitted provided that the following conditions | |
54 | * are met: | |
55 | * 1. Redistributions of source code must retain the above copyright | |
56 | * notice, this list of conditions and the following disclaimer. | |
57 | * 2. Redistributions in binary form must reproduce the above copyright | |
58 | * notice, this list of conditions and the following disclaimer in the | |
59 | * documentation and/or other materials provided with the distribution. | |
60 | * 3. All advertising materials mentioning features or use of this software | |
61 | * must display the following acknowledgement: | |
62 | * This product includes software developed by the University of | |
63 | * California, Berkeley and its contributors. | |
64 | * 4. Neither the name of the University nor the names of its contributors | |
65 | * may be used to endorse or promote products derived from this software | |
66 | * without specific prior written permission. | |
67 | * | |
68 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | |
69 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | |
70 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | |
71 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | |
72 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | |
73 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | |
74 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |
75 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | |
76 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | |
77 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |
78 | * SUCH DAMAGE. | |
79 | * | |
80 | * @(#)float.h 8.1 (Berkeley) 6/10/93 | |
81 | */ | |
82 | ||
83 | #define FLT_RADIX 2 /* b */ | |
84 | #define FLT_ROUNDS 1 /* FP addition rounds to nearest */ | |
85 | ||
86 | #define FLT_MANT_DIG 24 /* p */ | |
87 | #define FLT_EPSILON 1.19209290E-07F /* b**(1-p) */ | |
88 | #define FLT_DIG 6 /* floor((p-1)*log10(b))+(b == 10) */ | |
89 | #define FLT_MIN_EXP -125 /* emin */ | |
90 | #define FLT_MIN 1.17549435E-38F /* b**(emin-1) */ | |
91 | #define FLT_MIN_10_EXP -37 /* ceil(log10(b**(emin-1))) */ | |
92 | #define FLT_MAX_EXP 128 /* emax */ | |
93 | #define FLT_MAX 3.40282347E+38F /* (1-b**(-p))*b**emax */ | |
94 | #define FLT_MAX_10_EXP 38 /* floor(log10((1-b**(-p))*b**emax)) */ | |
95 | ||
96 | #define DBL_MANT_DIG 53 | |
97 | #define DBL_EPSILON 2.2204460492503131E-16 | |
98 | #define DBL_DIG 15 | |
99 | #define DBL_MIN_EXP -1021 | |
100 | #define DBL_MIN 2.225073858507201E-308 | |
101 | #define DBL_MIN_10_EXP -307 | |
102 | #define DBL_MAX_EXP 1024 | |
103 | #define DBL_MAX 1.797693134862316E+308 | |
104 | #define DBL_MAX_10_EXP 308 | |
105 | ||
106 | #define LDBL_MANT_DIG DBL_MANT_DIG | |
107 | #define LDBL_EPSILON DBL_EPSILON | |
108 | #define LDBL_DIG DBL_DIG | |
109 | #define LDBL_MIN_EXP DBL_MIN_EXP | |
110 | #define LDBL_MIN DBL_MIN | |
111 | #define LDBL_MIN_10_EXP DBL_MIN_10_EXP | |
112 | #define LDBL_MAX_EXP DBL_MAX_EXP | |
113 | #define LDBL_MAX DBL_MAX | |
114 | #define LDBL_MAX_10_EXP DBL_MAX_10_EXP | |
115 | ||
116 | #endif /* _IEEEFLOAT_H_ */ |