summaryrefslogtreecommitdiffstats
path: root/gl/float.in.h
diff options
context:
space:
mode:
Diffstat (limited to 'gl/float.in.h')
-rw-r--r--gl/float.in.h58
1 files changed, 58 insertions, 0 deletions
diff --git a/gl/float.in.h b/gl/float.in.h
new file mode 100644
index 0000000..2504032
--- /dev/null
+++ b/gl/float.in.h
@@ -0,0 +1,58 @@
1/* A correct <float.h>.
2
3 Copyright (C) 2007 Free Software Foundation, Inc.
4
5 This program is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 3 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>. */
17
18#ifndef _GL_FLOAT_H
19
20/* The include_next requires a split double-inclusion guard. */
21#@INCLUDE_NEXT@ @NEXT_FLOAT_H@
22
23#ifndef _GL_FLOAT_H
24#define _GL_FLOAT_H
25
26/* 'long double' properties. */
27#if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
28/* Number of mantissa units, in base FLT_RADIX. */
29# undef LDBL_MANT_DIG
30# define LDBL_MANT_DIG 64
31/* Number of decimal digits that is sufficient for representing a number. */
32# undef LDBL_DIG
33# define LDBL_DIG 18
34/* x-1 where x is the smallest representable number > 1. */
35# undef LDBL_EPSILON
36# define LDBL_EPSILON 1.0842021724855044340E-19L
37/* Minimum e such that FLT_RADIX^(e-1) is a normalized number. */
38# undef LDBL_MIN_EXP
39# define LDBL_MIN_EXP (-16381)
40/* Maximum e such that FLT_RADIX^(e-1) is a representable finite number. */
41# undef LDBL_MAX_EXP
42# define LDBL_MAX_EXP 16384
43/* Minimum positive normalized number. */
44# undef LDBL_MIN
45# define LDBL_MIN 3.3621031431120935063E-4932L
46/* Maximum representable finite number. */
47# undef LDBL_MAX
48# define LDBL_MAX 1.1897314953572317650E+4932L
49/* Minimum e such that 10^e is in the range of normalized numbers. */
50# undef LDBL_MIN_10_EXP
51# define LDBL_MIN_10_EXP (-4931)
52/* Maximum e such that 10^e is in the range of representable finite numbers. */
53# undef LDBL_MAX_10_EXP
54# define LDBL_MAX_10_EXP 4932
55#endif
56
57#endif /* _GL_FLOAT_H */
58#endif /* _GL_FLOAT_H */