Import 2.3.18pre1
[davej-history.git] / include / asm-mips / byteorder.h
blobc3e48440836d8beecbcb948d5114105b41056bba
1 /* $Id: byteorder.h,v 1.7 1999/01/04 16:09:20 ralf Exp $
3 * This file is subject to the terms and conditions of the GNU General Public
4 * License. See the file "COPYING" in the main directory of this archive
5 * for more details.
7 * Copyright (C) by Ralf Baechle
8 */
9 #ifndef _MIPS_BYTEORDER_H
10 #define _MIPS_BYTEORDER_H
12 #include <asm/types.h>
14 #ifdef __GNUC__
16 #if !defined(__STRICT_ANSI__) || defined(__KERNEL__)
17 # define __BYTEORDER_HAS_U64__
18 # define __SWAB_64_THRU_32__
19 #endif
21 #endif /* __GNUC__ */
23 #if defined (__MIPSEB__)
24 # include <linux/byteorder/big_endian.h>
25 #elif defined (__MIPSEL__)
26 # include <linux/byteorder/little_endian.h>
27 #else
28 # error "MIPS, but neither __MIPSEB__, nor __MIPSEL__???"
29 #endif
31 #endif /* _MIPS_BYTEORDER_H */