home *** CD-ROM | disk | FTP | other *** search
- /****************************************************************************
- *
- * $Source: /unixb/home/unixlib/source/unixlib37/src/clib/machine/h/RCS/endian,v $
- * $Date: 1996/10/30 21:58:59 $
- * $Revision: 1.2 $
- * $State: Rel $
- * $Author: unixlib $
- *
- * $Log: endian,v $
- * Revision 1.2 1996/10/30 21:58:59 unixlib
- * Massive changes made by Nick Burret and Peter Burwood.
- *
- * Revision 1.1 1996/09/16 21:23:51 unixlib
- * Initial revision
- *
- ***************************************************************************/
-
- #ifndef __ENDIAN_H
- #define __ENDIAN_H 1
-
- /* Definitions for byte order, according to significance of bytes, from low
- addresses to high addresses. The value is what you get by putting '4'
- in the most significant byte, '3' in the second most significant byte,
- '2' in the second least significant byte, and '1' in the least
- significant byte. */
-
- #define __LITTLE_ENDIAN 1234
- #define __BIG_ENDIAN 4321
- #define __PDP_ENDIAN 3412
-
- /* Byte order for RISC OS is little endian. */
- #define __BYTE_ORDER __LITTLE_ENDIAN
-
- /* For compatibility with BSD. */
- #define LITTLE_ENDIAN __LITTLE_ENDIAN
- #define BIG_ENDIAN __BIG_ENDIAN
- #define PDP_ENDIAN __PDP_ENDIAN
- #define BYTE_ORDER __BYTE_ORDER
-
- #endif
-