This repository has been archived on 2020-12-06. You can view files and clone it, but cannot push or open issues or pull requests.
2015-03-02 17:25:53 +01:00
|
|
|
#ifndef _ENDIAN_H
|
|
|
|
#define _ENDIAN_H
|
2005-03-08 19:53:11 +01:00
|
|
|
|
2015-03-02 17:25:53 +01:00
|
|
|
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
|
2009-05-01 16:41:06 +02:00
|
|
|
|
2015-03-02 17:25:53 +01:00
|
|
|
/** Constant representing little-endian byte order
|
|
|
|
*
|
|
|
|
* Little-endian systems should define BYTE_ORDER as LITTLE_ENDIAN.
|
|
|
|
* This constant is intended to be used only at compile time.
|
|
|
|
*/
|
|
|
|
#define __LITTLE_ENDIAN 0x44332211UL
|
2005-03-08 19:53:11 +01:00
|
|
|
|
2015-03-02 17:25:53 +01:00
|
|
|
/** Constant representing big-endian byte order
|
|
|
|
*
|
|
|
|
* Big-endian systems should define BYTE_ORDER as BIG_ENDIAN.
|
|
|
|
* This constant is intended to be used only at compile time.
|
|
|
|
*/
|
|
|
|
#define __BIG_ENDIAN 0x11223344UL
|
2005-03-08 19:53:11 +01:00
|
|
|
|
|
|
|
#include "bits/endian.h"
|
|
|
|
|
2015-03-02 17:25:53 +01:00
|
|
|
#endif /* _ENDIAN_H */
|