82a9fd6a48
Remove DOS CR from some files. Add setjmp stuff for m68k (unfinished). Moved arch specific stuff out of signal.h to arch/<arch>/signal.h Added m68k vreg for signal.h (unfinished). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22703 a95241bf-73f2-0310-859d-f6bbb57e9c96
28 lines
647 B
C
28 lines
647 B
C
#ifndef _ENDIAN_H_
|
|
#define _ENDIAN_H_
|
|
/*
|
|
** Distributed under the terms of the OpenBeOS License.
|
|
*/
|
|
|
|
|
|
/* Defines architecture dependent endian constants.
|
|
* The constant reflects the byte order, "4" is the most
|
|
* significant byte, "1" the least significant one.
|
|
*/
|
|
|
|
#if defined(__INTEL__)
|
|
# define LITTLE_ENDIAN 1234
|
|
# define BIG_ENDIAN 0
|
|
# define BYTE_ORDER LITTLE_ENDIAN
|
|
#elif defined(__POWERPC__) || defined(__M68K__)
|
|
# define BIG_ENDIAN 4321
|
|
# define LITTLE_ENDIAN 0
|
|
# define BYTE_ORDER BIG_ENDIAN
|
|
#endif
|
|
|
|
#define __BIG_ENDIAN BIG_ENDIAN
|
|
#define __LITTLE_ENDIAN LITTLE_ENDIAN
|
|
#define __BYTE_ORDER BYTE_ORDER
|
|
|
|
#endif /* _ENDIAN_H_ */
|