SyterKit
0.4.0.x
SyterKit is a bare-metal framework
Loading...
Searching...
No Matches
include
arch
arm32
endian.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0+ */
2
3
#ifndef __ENDIAN_H__
4
#define __ENDIAN_H__
5
6
#ifdef __cplusplus
7
extern
"C"
{
8
#endif
9
10
#define LITTLE_ENDIAN (0x1234)
11
#define BIG_ENDIAN (0x4321)
12
13
#if (!defined(__LITTLE_ENDIAN) && !defined(__BIG_ENDIAN))
14
#define __LITTLE_ENDIAN
15
#endif
16
17
#if defined(__LITTLE_ENDIAN)
18
#define BYTE_ORDER LITTLE_ENDIAN
19
#elif defined(__BIG_ENDIAN)
20
#define BYTE_ORDER BIG_ENDIAN
21
#else
22
#error "Unknown byte order!"
23
#endif
24
25
#ifdef __cplusplus
26
}
27
#endif
28
29
#endif
/* __ENDIAN_H__ */
Generated by
1.9.8