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