shithub: npe

ref: 7b724339b6807d81776861191cdb5ac933f2641c
dir: /include/npe/limits.h/

View raw version
#ifndef _limits_h_
#define _limits_h_

#ifndef SHRT_MAX
#define SHRT_MAX 0x7fff
#endif

#ifndef SHRT_MIN
#define SHRT_MIN (-SHRT_MAX-1)
#endif

#ifndef SIZE_MAX
#define SIZE_MAX 0xffffffffU
#endif

#ifndef PATH_MAX
#define PATH_MAX 4096
#endif

#ifndef INT16_MAX
#define INT16_MAX 0x7fff
#endif

#ifndef INT32_MAX
#define INT32_MAX  0x7fffffff
#endif

#ifndef UINT32_MAX
#define UINT32_MAX 0xffffffffU
#endif

#ifndef INT64_MAX
#define INT64_MAX 0x7fffffffffffffff
#endif

#ifndef UINT64_MAX
#define UINT64_MAX 0xffffffffffffffffULL
#endif

#ifndef INT_MAX
#define INT_MAX INT32_MAX
#endif

#ifndef UINT_MAX
#define UINT_MAX UINT32_MAX
#endif

#ifndef INT16_MIN
#define INT16_MIN ((s16int)0x8000)
#endif

#ifndef INT32_MIN
#define INT32_MIN (-INT32_MAX-1)
#endif

#ifndef INT64_MIN
#define INT64_MIN ((s64int)0x8000000000000000ULL)
#endif

#ifndef INT_MIN
#define INT_MIN INT32_MIN
#endif

#endif