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
+15
View File
@@ -211,6 +211,14 @@
# define SCNxMAX "lx"
# define SCNxPTR "hx"
# define INT8_C(x) x
# define INT16_C(x) x
# define INT32_C(x) x ## l
# define UINT8_C(x) x
# define UINT16_C(x) x
# define UINT32_C(x) x ## ul
#else
# define PRId8 "d"
@@ -378,6 +386,13 @@
# define SCNxMAX "lx"
# define SCNxPTR "x"
# define INT8_C(x) x
# define INT16_C(x) x
# define INT32_C(x) x ## l
# define UINT8_C(x) x
# define UINT16_C(x) x
# define UINT32_C(x) x ## ul
#endif
#endif /* __ARCH_Z80_INCLUDE_EZ80_INTTYPES_H */
+8
View File
@@ -209,4 +209,12 @@
#define SCNxMAX "lx"
#define SCNxPTR "x"
#define INT8_C(x) x
#define INT16_C(x) x
#define INT32_C(x) x ## l
#define UINT8_C(x) x
#define UINT16_C(x) x
#define UINT32_C(x) x ## ul
#endif /* __ARCH_Z80_INCLUDE_Z180_INTTYPES_H */
+8
View File
@@ -209,4 +209,12 @@
#define SCNxMAX "lx"
#define SCNxPTR "x"
#define INT8_C(x) x
#define INT16_C(x) x
#define INT32_C(x) x ## l
#define UINT8_C(x) x
#define UINT16_C(x) x
#define UINT32_C(x) x ## ul
#endif /* __ARCH_Z80_INCLUDE_Z8_INTTYPES_H */
+8
View File
@@ -209,4 +209,12 @@
#define SCNxMAX "lx"
#define SCNxPTR "x"
#define INT8_C(x) x
#define INT16_C(x) x
#define INT32_C(x) x ## l
#define UINT8_C(x) x
#define UINT16_C(x) x
#define UINT32_C(x) x ## ul
#endif /* __ARCH_Z80_INCLUDE_Z80_INTTYPES_H */