1967
|
1 /* |
|
2 |
2847
|
3 Copyright (C) 1996, 1997 John W. Eaton |
1967
|
4 |
|
5 This file is part of Octave. |
|
6 |
|
7 Octave is free software; you can redistribute it and/or modify it |
|
8 under the terms of the GNU General Public License as published by the |
|
9 Free Software Foundation; either version 2, or (at your option) any |
|
10 later version. |
|
11 |
|
12 Octave is distributed in the hope that it will be useful, but WITHOUT |
|
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
15 for more details. |
|
16 |
|
17 You should have received a copy of the GNU General Public License |
|
18 along with Octave; see the file COPYING. If not, write to the Free |
|
19 Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
20 |
|
21 */ |
|
22 |
|
23 #if !defined (octave_liboctave_ieee_h) |
|
24 #define octave_liboctave_ieee_h 1 |
|
25 |
4072
|
26 #ifdef __cplusplus |
|
27 extern "C" { |
|
28 #endif |
|
29 |
1967
|
30 // Octave's idea of infinity. |
|
31 extern double octave_Inf; |
|
32 |
|
33 // Octave's idea of not a number. |
|
34 extern double octave_NaN; |
|
35 |
4025
|
36 // Octave's idea of a missing value. |
|
37 extern double octave_NA; |
|
38 |
4074
|
39 extern void octave_ieee_init (void); |
1967
|
40 |
4074
|
41 extern int lo_ieee_is_NA (double); |
|
42 extern int lo_ieee_is_NaN_or_NA (double); |
4025
|
43 |
2522
|
44 #if defined (SCO) |
4074
|
45 extern int isnan (double); |
|
46 extern int isinf (double); |
4072
|
47 #endif |
|
48 |
4074
|
49 extern int lo_ieee_isnan (double x); |
|
50 extern int lo_ieee_finite (double x); |
|
51 extern int lo_ieee_isinf (double x); |
4072
|
52 |
|
53 #ifdef __cplusplus |
|
54 } |
2522
|
55 #endif |
|
56 |
1967
|
57 #endif |
|
58 |
|
59 /* |
|
60 ;;; Local Variables: *** |
|
61 ;;; mode: C++ *** |
|
62 ;;; End: *** |
|
63 */ |