source: trunk/binutils/include/floatformat.h@ 3204

Last change on this file since 3204 was 610, checked in by bird, 22 years ago

This commit was generated by cvs2svn to compensate for changes in r609,
which included commits to RCS files with non-trunk default branches.

  • Property cvs2svn:cvs-rev set to 1.1.1.2
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 4.2 KB
Line 
1/* IEEE floating point support declarations, for GDB, the GNU Debugger.
2 Copyright 1991, 1994, 1995, 1997, 2000 Free Software Foundation, Inc.
3
4This file is part of GDB.
5
6This program is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 2 of the License, or
9(at your option) any later version.
10
11This program is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with this program; if not, write to the Free Software
18Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
19
20#if !defined (FLOATFORMAT_H)
21#define FLOATFORMAT_H 1
22
23#include "ansidecl.h"
24
25/* A floatformat consists of a sign bit, an exponent and a mantissa. Once the
26 bytes are concatenated according to the byteorder flag, then each of those
27 fields is contiguous. We number the bits with 0 being the most significant
28 (i.e. BITS_BIG_ENDIAN type numbering), and specify which bits each field
29 contains with the *_start and *_len fields. */
30
31/* What is the order of the bytes. */
32
33enum floatformat_byteorders {
34
35 /* Standard little endian byte order.
36 EX: 1.2345678e10 => 00 00 80 c5 e0 fe 06 42 */
37
38 floatformat_little,
39
40 /* Standard big endian byte order.
41 EX: 1.2345678e10 => 42 06 fe e0 c5 80 00 00 */
42
43 floatformat_big,
44
45 /* Little endian byte order but big endian word order.
46 EX: 1.2345678e10 => e0 fe 06 42 00 00 80 c5 */
47
48 floatformat_littlebyte_bigword
49
50};