From: Sebastien Bourdeauducq Date: Thu, 10 Jan 2013 16:10:29 +0000 (+0100) Subject: software/include/base/stdint.h: more definitions X-Git-Tag: 24jan2021_ls180~3061 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b0503aaf852460fd467bb84129273a028270f069;p=litex.git software/include/base/stdint.h: more definitions --- diff --git a/software/include/base/stdint.h b/software/include/base/stdint.h index 92aa15a6..029aeb29 100644 --- a/software/include/base/stdint.h +++ b/software/include/base/stdint.h @@ -3,5 +3,21 @@ typedef unsigned int uintptr_t; -#endif /* __STDINT_H */ +typedef unsigned long long uint64_t; +typedef unsigned int uint32_t; +typedef unsigned short uint16_t; +typedef unsigned char uint8_t; + +typedef long long int64_t; +typedef int int32_t; +typedef short int16_t; +typedef char int8_t; + +#define __int_c_join(a, b) a ## b +#define __int_c(v, suffix) __int_c_join(v, suffix) +#define __uint_c(v, suffix) __int_c_join(v##U, suffix) +#define INT64_C(v) __int_c(v, LL) +#define UINT64_C(v) __uint_c(v, LL) + +#endif /* __STDINT_H */