|
|
1.1 ! root 1: /* @(#)btorder.h 1.8 98/12/14 Copyright 1996 J. Schilling */ ! 2: /* ! 3: * Definitions for Bitordering ! 4: * ! 5: * Copyright (c) 1996 J. Schilling ! 6: */ ! 7: /* ! 8: * This program is free software; you can redistribute it and/or modify ! 9: * it under the terms of the GNU General Public License as published by ! 10: * the Free Software Foundation; either version 2, or (at your option) ! 11: * any later version. ! 12: * ! 13: * This program is distributed in the hope that it will be useful, ! 14: * but WITHOUT ANY WARRANTY; without even the implied warranty of ! 15: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! 16: * GNU General Public License for more details. ! 17: * ! 18: * You should have received a copy of the GNU General Public License ! 19: * along with this program; see the file COPYING. If not, write to ! 20: * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. ! 21: */ ! 22: ! 23: ! 24: #ifndef _BTORDER_H ! 25: #define _BTORDER_H ! 26: ! 27: #include <sys/types.h> /* try to load isa_defs.h on Solaris */ ! 28: ! 29: ! 30: #if defined(_BIT_FIELDS_LTOH) || defined(_BIT_FIELDS_HTOL) ! 31: /* ! 32: * Bitorder is known. ! 33: */ ! 34: #else ! 35: /* ! 36: * Bitorder not known. ! 37: */ ! 38: # if defined(sun3) || defined(mc68000) || \ ! 39: defined(sun4) || defined(__sparc) || defined(sparc) || \ ! 40: defined(__hppa) || defined(_ARCH_PPC) || defined(_IBMR2) ! 41: # define _BIT_FIELDS_HTOL ! 42: # endif ! 43: ! 44: # if defined(__sgi) && defined(__mips) ! 45: # define _BIT_FIELDS_HTOL ! 46: # endif ! 47: ! 48: # if defined(__i386) || defined(i386) || \ ! 49: defined(__alpha) || defined(alpha) || \ ! 50: defined(__arm) || defined(arm) ! 51: # define _BIT_FIELDS_LTOH ! 52: # endif ! 53: ! 54: # if defined(__ppc__) || defined(ppc) || defined(__ppc) || \ ! 55: defined(__PPC) || defined(powerpc) ! 56: ! 57: # if defined(__BIG_ENDIAN__) ! 58: # define _BIT_FIELDS_HTOL ! 59: # else ! 60: # define _BIT_FIELDS_LTOH ! 61: # endif ! 62: # endif ! 63: #endif ! 64: ! 65: #endif /* _BTORDER_H */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.