Dead
[official-gcc.git] / gomp-20050608-branch / libgcc-math / i386 / endian.h
blob4dec8beb200af0167767cd075b22bf8478c97ee5
1 /* endian.h file crafted from relevant parts of libc include/endian.h
2 string/endian.h and arch-specific bits/endian.h.
3 Copyright (C) 2006 Free Software Foundation, Inc.
5 This file is part of GCC.
7 GCC is free software; you can redistribute it and/or modify it under
8 the terms of the GNU General Public License as published by the Free
9 Software Foundation; either version 2, or (at your option) any later
10 version.
12 In addition to the permissions in the GNU General Public License, the
13 Free Software Foundation gives you unlimited permission to link the
14 compiled version of this file into combinations with other programs,
15 and to distribute those combinations without any restriction coming
16 from the use of this file. (The General Public License restrictions
17 do apply in other respects; for example, they cover modification of
18 the file, and distribution when not linked into a combine
19 executable.)
21 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
22 WARRANTY; without even the implied warranty of MERCHANTABILITY or
23 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
24 for more details.
26 You should have received a copy of the GNU General Public License
27 along with GCC; see the file COPYING. If not, write to the Free
28 Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
29 02110-1301, USA. */
31 #ifndef LIBGCCM_ENDIAN_H
32 #define LIBGCCM_ENDIAN_H
34 #define __BIG_ENDIAN 4321
35 #define __LITTLE_ENDIAN 1234
36 #define BIG_ENDIAN 4321
37 #define LITTLE_ENDIAN 1234
39 /* Change this. */
40 #define __FLOAT_WORD_ORDER 1234
41 #define __BYTE_ORDER 1234
43 #if __FLOAT_WORD_ORDER == BIG_ENDIAN
44 # define BIG_ENDI 1
45 # undef LITTLE_ENDI
46 # define HIGH_HALF 0
47 # define LOW_HALF 1
48 #else
49 # if __FLOAT_WORD_ORDER == LITTLE_ENDIAN
50 # undef BIG_ENDI
51 # define LITTLE_ENDI 1
52 # define HIGH_HALF 1
53 # define LOW_HALF 0
54 # endif
55 #endif
57 #endif