endian.h

来自「ecos实时嵌入式操作系统」· C头文件 代码 · 共 48 行

H
48
字号
//==========================================================================////      include/machine/endian.h////      Architecture/platform specific byte ordering support////==========================================================================//####BSDCOPYRIGHTBEGIN####//// -------------------------------------------//// Portions of this software may have been derived from OpenBSD or other sources,// and are covered by the appropriate copyright disclaimers included herein.//// -------------------------------------------////####BSDCOPYRIGHTEND####//==========================================================================//#####DESCRIPTIONBEGIN####//// Author(s):    gthomas// Contributors: gthomas// Date:         2000-01-10// Purpose:      // Description:  //              ////####DESCRIPTIONEND####////==========================================================================#ifndef _MACHINE_ENDIAN_H_#define _MACHINE_ENDIAN_H_#include <cyg/hal/basetype.h>#if CYG_BYTEORDER == CYG_MSBFIRST#define BYTE_ORDER BIG_ENDIAN#else#define BYTE_ORDER LITTLE_ENDIAN#endif#include <sys/endian.h>#endif // _MACHINE_ENDIAN_H_

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?