Subversion Repositories shark

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 pj 1
/*
2
 * Project: S.Ha.R.K.
3
 *
4
 * Coordinators:
5
 *   Giorgio Buttazzo    <giorgio@sssup.it>
6
 *   Paolo Gai           <pj@gandalf.sssup.it>
7
 *
8
 * Authors     :
9
 *   Paolo Gai           <pj@gandalf.sssup.it>
10
 *   Massimiliano Giorgi <massy@gandalf.sssup.it>
11
 *   Luca Abeni          <luca@gandalf.sssup.it>
12
 *   (see the web pages for full authors list)
13
 *
14
 * ReTiS Lab (Scuola Superiore S.Anna - Pisa - Italy)
15
 *
16
 * http://www.sssup.it
17
 * http://retis.sssup.it
18
 * http://shark.sssup.it
19
 */
20
 
21
/*
22
 * Copyright (C) 1999 Massimiliano Giorgi
23
 *
24
 * This program is free software; you can redistribute it and/or modify
25
 * it under the terms of the GNU General Public License as published by
26
 * the Free Software Foundation; either version 2 of the License, or
27
 * (at your option) any later version.
28
 *
29
 * This program is distributed in the hope that it will be useful,
30
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
31
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
32
 * GNU General Public License for more details.
33
 *
34
 * You should have received a copy of the GNU General Public License
35
 * along with this program; if not, write to the Free Software
36
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
37
 *
38
 */
39
 
40
/*
41
 * CVS :        $Id: endian.h,v 1.1.1.1 2002-03-29 14:12:50 pj Exp $
42
 *
43
 * File:        $File$
44
 * Revision:    $Revision: 1.1.1.1 $
45
 * Last update: $Date: 2002-03-29 14:12:50 $
46
 */
47
 
48
/* Copyright (C) 1992, 1996, 1997 Free Software Foundation, Inc.
49
   This file is part of the GNU C Library.
50
 
51
   The GNU C Library is free software; you can redistribute it and/or
52
   modify it under the terms of the GNU Library General Public License as
53
   published by the Free Software Foundation; either version 2 of the
54
   License, or (at your option) any later version.
55
 
56
   The GNU C Library is distributed in the hope that it will be useful,
57
   but WITHOUT ANY WARRANTY; without even the implied warranty of
58
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
59
   Library General Public License for more details.
60
 
61
   You should have received a copy of the GNU Library General Public
62
   License along with the GNU C Library; see the file COPYING.LIB.  If not,
63
   write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
64
   Boston, MA 02111-1307, USA.  */
65
 
66
/* MODIFIED! */
67
 
68
#ifndef _ENDIAN_H
69
#define _ENDIAN_H       1
70
 
71
#include <features.h>
72
 
73
#include <bits/endian.h>
74
 
75
/* Definitions for byte order, according to significance of bytes, from low
76
   addresses to high addresses.  The value is what you get by putting '4'
77
   in the most significant byte, '3' in the second most significant byte,
78
   '2' in the second least significant byte, and '1' in the least
79
   significant byte.  */
80
 
81
#define __LITTLE_ENDIAN LITTLE_ENDIAN
82
#define __BIG_ENDIAN    BIG_ENDIAN
83
#define __PDP_ENDIAN    PDP_ENDIAN
84
 
85
/* This file defines `__BYTE_ORDER' for the particular machine.  */
86
#include <bits/endian.h>
87
 
88
/* Some machines may need to use a different endianness for floating point
89
   values.  */
90
#ifndef __FLOAT_WORD_ORDER
91
#define __FLOAT_WORD_ORDER __BYTE_ORDER
92
#endif
93
 
94
//#ifdef        __USE_BSD
95
//# define LITTLE_ENDIAN        __LITTLE_ENDIAN
96
//# define BIG_ENDIAN   __BIG_ENDIAN
97
//# define PDP_ENDIAN   __PDP_ENDIAN
98
//# define BYTE_ORDER   __BYTE_ORDER
99
//#endif
100
 
101
#endif  /* endian.h */