49ac6ffe6d69b17d1697553cad0d307d0d457cda
[litex.git] / litex / soc / misoc / software / include / base / limits.h
1 #ifndef __LIMITS_H
2 #define __LIMITS_H
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8 #define ULONG_MAX 0xffffffff
9
10 #define UINT_MAX 0xffffffff
11 #define INT_MIN 0x80000000
12 #define INT_MAX 0x7fffffff
13
14 #define USHRT_MAX 0xffff
15 #define SHRT_MIN 0x8000
16 #define SHRT_MAX 0x7fff
17
18 #define UCHAR_MAX 0xff
19
20 #define CHAR_BIT 8
21
22 #ifdef __cplusplus
23 }
24 #endif
25
26 #endif /* __LIMITS_H */