36 lines
1.1 KiB
C
36 lines
1.1 KiB
C
/*
|
|
* Copyright (c) 1982, 1986 Regents of the University of California.
|
|
* All rights reserved.
|
|
*
|
|
* Redistribution and use in source and binary forms are permitted
|
|
* provided that this notice is preserved and that due credit is given
|
|
* to the University of California at Berkeley. The name of the University
|
|
* may not be used to endorse or promote products derived from this
|
|
* software without specific prior written permission. This software
|
|
* is provided ``as is'' without express or implied warranty.
|
|
*
|
|
* Copyright (C) 1989 Protocol Engines, Incorporated.
|
|
* All rights reserved.
|
|
* ##NOTICE##
|
|
*
|
|
* $Revision: 1.2 $
|
|
*/
|
|
|
|
#ifndef BYTE_ORDER
|
|
/*
|
|
* Definitions for byte order,
|
|
* according to byte significance from low address to high.
|
|
*/
|
|
#define LITTLE_ENDIAN 1234 /* least-significant byte first (vax) */
|
|
#define BIG_ENDIAN 4321 /* most-significant byte first (IBM, net) */
|
|
#define PDP_ENDIAN 3412 /* LSB first in word, MSW first in long (pdp) */
|
|
|
|
#ifdef vax
|
|
#define BYTE_ORDER LITTLE_ENDIAN
|
|
#else
|
|
#define BYTE_ORDER BIG_ENDIAN /* mc68000, tahoe, SGI MIPS,
|
|
* most others */
|
|
#endif
|
|
|
|
#endif /* BYTE_ORDER */
|