|
Software APIs
|
Go to the documentation of this file.
5 #ifndef OPENTITAN_SW_DEVICE_LIB_BASE_FREESTANDING_LIMITS_H_
6 #define OPENTITAN_SW_DEVICE_LIB_BASE_FREESTANDING_LIMITS_H_
18 #define SCHAR_MAX __SCHAR_MAX__
19 #define SHRT_MAX __SHRT_MAX__
20 #define INT_MAX __INT_MAX__
21 #define LONG_MAX __LONG_MAX__
22 #define LLONG_MAX __LONG_LONG_MAX__
24 #define SCHAR_MIN (-__SCHAR_MAX__ - 1)
25 #define SHRT_MIN (-__SHRT_MAX__ - 1)
26 #define INT_MIN (-__INT_MAX__ - 1)
27 #define LONG_MIN (-__LONG_MAX__ - 1L)
28 #define LLONG_MIN (-__LONG_LONG_MAX__ - 1LL)
30 #define UCHAR_MAX (__SCHAR_MAX__ * 2 + 1)
31 #define USHRT_MAX (__SHRT_MAX__ * 2 + 1)
32 #define UINT_MAX (__INT_MAX__ * 2U + 1U)
33 #define ULONG_MAX (__LONG_MAX__ * 2UL + 1UL)
34 #define ULLONG_MAX (__LONG_LONG_MAX__ * 2ULL + 1ULL)
36 #define CHAR_BIT __CHAR_BIT__
37 #define MB_LEN_MAX (1)
39 #ifdef __CHAR_UNSIGNED__
41 #define CHAR_MAX UCHAR_MAX
43 #define CHAR_MIN SCHAR_MIN
44 #define CHAR_MAX SCHAR_MAX