1 /* PSPP - a program for statistical analysis.
2 Copyright (C) 1997-9, 2000 Free Software Foundation, Inc.
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 3 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>. */
25 /* Check that the floating-point representation is one that we
28 #error Only IEEE-754 floating point currently supported.
31 /* Allows us to specify individual bytes of a double. */
33 unsigned char cvt_dbl_i[8];
38 /* "Second-lowest value" bytes for an IEEE-754 double. */
40 #define SECOND_LOWEST_BYTES {0xff,0xef,0xff,0xff, 0xff,0xff,0xff,0xfe}
42 #define SECOND_LOWEST_BYTES {0xfe,0xff,0xff,0xff, 0xff,0xff,0xef,0xff}
45 /* "Second-lowest value" for a double. */
47 #define second_lowest_value \
48 (__extension__ ((union cvt_dbl) {SECOND_LOWEST_BYTES}).cvt_dbl_d)
50 extern union cvt_dbl second_lowest_value_union;
51 #define second_lowest_value (second_lowest_value_union.cvt_dbl_d)
54 /* Used when we want a "missing value". */
55 #define NOT_DOUBLE (-DBL_MAX)
56 #define NOT_LONG LONG_MIN
57 #define NOT_INT INT_MIN