1960
|
1 // float-fmt.h -*- C++ -*- |
|
2 /* |
|
3 |
|
4 Copyright (C) 1996 John W. Eaton |
|
5 |
|
6 This file is part of Octave. |
|
7 |
|
8 Octave is free software; you can redistribute it and/or modify it |
|
9 under the terms of the GNU General Public License as published by the |
|
10 Free Software Foundation; either version 2, or (at your option) any |
|
11 later version. |
|
12 |
|
13 Octave is distributed in the hope that it will be useful, but WITHOUT |
|
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
16 for more details. |
|
17 |
|
18 You should have received a copy of the GNU General Public License |
|
19 along with Octave; see the file COPYING. If not, write to the Free |
|
20 Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
21 |
|
22 */ |
|
23 |
|
24 #if !defined (octave_float_fmt_h) |
|
25 #define octave_float_fmt_h 1 |
|
26 |
|
27 enum floating_point_format |
|
28 { |
|
29 OCTAVE_IEEE_LITTLE, |
|
30 OCTAVE_IEEE_BIG, |
|
31 OCTAVE_VAX_D, |
|
32 OCTAVE_VAX_G, |
|
33 OCTAVE_CRAY, |
|
34 OCTAVE_UNKNOWN_FLT_FMT |
|
35 }; |
|
36 |
|
37 // The floating point format on this system. |
|
38 extern floating_point_format native_float_format; |
|
39 |
|
40 // Initializes the value of native_float_format. Maybe this should be |
|
41 // done automatically using a class with a static member. Hmm... |
|
42 extern int float_format_init (void); |
|
43 |
|
44 #endif |
|
45 |
|
46 /* |
|
47 ;;; Local Variables: *** |
|
48 ;;; mode: C++ *** |
|
49 ;;; page-delimiter: "^/\\*" *** |
|
50 ;;; End: *** |
|
51 */ |
|
52 |