merge
[ccan] / ccan / short_types / short_types.h
1 #ifndef CCAN_SHORT_TYPES_H
2 #define CCAN_SHORT_TYPES_H
3 #include <stdint.h>
4
5 /**
6  * u64/s64/u32/s32/u16/s16/u8/s8 - short names for explicitly-sized types.
7  */
8 typedef uint64_t u64;
9 typedef int64_t s64;
10 typedef uint32_t u32;
11 typedef int32_t s32;
12 typedef uint16_t u16;
13 typedef int16_t s16;
14 typedef uint8_t u8;
15 typedef int8_t s8;
16
17 /**
18  * be64/be32/be16 - 64/32/16 bit big-endian representation.
19  */
20 typedef uint64_t be64;
21 typedef uint32_t be32;
22 typedef uint16_t be16;
23
24 /**
25  * le64/le32/le16 - 64/32/16 bit little-endian representation.
26  */
27 typedef uint64_t le64;
28 typedef uint32_t le32;
29 typedef uint16_t le16;
30
31 #endif /* CCAN_SHORT_TYPES_H */