1 /* SPDX-License-Identifier: GPL-2.0+ */
6 #define INT_MAX 0x7fffffff
7 #define UINT_MAX 0xffffffffU
9 #define UINT32_MAX 0xffffffffU
10 #define UINT64_MAX 0xffffffffffffffffULL
12 #if (defined(CONFIG_64BIT) && !defined(CONFIG_SPL_BUILD)) || \
13 (defined(CONFIG_SPL_64BIT) && defined(CONFIG_SPL_BUILD))
14 #define UINTPTR_MAX UINT64_MAX
16 #define UINTPTR_MAX UINT32_MAX
20 #define SIZE_MAX UINTPTR_MAX
23 #define SSIZE_MAX ((ssize_t)(SIZE_MAX >> 1))
26 #endif /* _LIMITS_H */