From: Sebastien Bourdeauducq Date: Mon, 4 Jun 2012 17:41:41 +0000 (+0200) Subject: software/base/limits.h: add some more X-Git-Tag: 24jan2021_ls180~3133 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b4f49cc48fec2fb0985e6df03873b9a4b01c79db;p=litex.git software/base/limits.h: add some more --- diff --git a/software/include/base/limits.h b/software/include/base/limits.h index b9c113ec..95234d25 100644 --- a/software/include/base/limits.h +++ b/software/include/base/limits.h @@ -1,12 +1,18 @@ #ifndef __LIMITS_H #define __LIMITS_H +#define ULONG_MAX 0xffffffff + +#define UINT_MAX 0xffffffff #define INT_MIN 0x80000000 #define INT_MAX 0x7fffffff +#define USHRT_MAX 0xffff #define SHRT_MIN 0x8000 #define SHRT_MAX 0x7fff #define UCHAR_MAX 0xff +#define CHAR_BIT 8 + #endif /* __LIMITS_H */