arch: Define INTx_C and UINTx_C macro

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Ia50ea8764880fabd3d878c95328632c761be6b43
This commit is contained in:
Xiang Xiao
2020-06-10 02:24:49 +08:00
committed by Alin Jerpelea
parent 7e3c341b15
commit 7758eb8658
21 changed files with 223 additions and 23 deletions
+10
View File
@@ -242,4 +242,14 @@
#define SCNxMAX "llx"
#define SCNxPTR "x"
#define INT8_C(x) x
#define INT16_C(x) x
#define INT32_C(x) x
#define INT64_C(x) x ## ll
#define UINT8_C(x) x
#define UINT16_C(x) x
#define UINT32_C(x) x ## u
#define UINT64_C(x) x ## ull
#endif /* __ARCH_MISOC_INCLUDE_INTTYPES_H */