iPXE
limits.h
Go to the documentation of this file.
00001 #ifndef LIMITS_H
00002 #define LIMITS_H        1
00003 
00004 FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
00005 
00006 /* Number of bits in a `char' */
00007 #define CHAR_BIT        8
00008 
00009 /* Minimum and maximum values a `signed char' can hold */
00010 #define SCHAR_MIN       (-128)
00011 #define SCHAR_MAX       127
00012 
00013 /* Maximum value an `unsigned char' can hold. (Minimum is 0.) */
00014 #define UCHAR_MAX       255
00015 
00016 /* Minimum and maximum values a `char' can hold */
00017 #define CHAR_MIN        SCHAR_MIN
00018 #define CHAR_MAX        SCHAR_MAX
00019 
00020 /* Minimum and maximum values a `signed short int' can hold */
00021 #define SHRT_MIN        (-32768)
00022 #define SHRT_MAX        32767
00023 
00024 /* Maximum value an `unsigned short' can hold. (Minimum is 0.) */
00025 #define USHRT_MAX       65535
00026 
00027 
00028 /* Minimum and maximum values a `signed int' can hold */
00029 #define INT_MIN         (-INT_MAX - 1)
00030 #define INT_MAX         2147483647
00031 
00032 /* Maximum value an `unsigned int' can hold. (Minimum is 0.) */
00033 #define UINT_MAX        4294967295U
00034 
00035 
00036 /* Minimum and maximum values a `signed int' can hold */
00037 #define INT_MAX         2147483647
00038 #define INT_MIN         (-INT_MAX - 1)
00039 
00040 
00041 /* Maximum value an `unsigned int' can hold. (Minimum is 0.) */
00042 #define UINT_MAX        4294967295U
00043 
00044 
00045 /* Minimum and maximum values a `signed long' can hold */
00046 #define LONG_MAX        2147483647
00047 #define LONG_MIN        (-LONG_MAX - 1L)
00048 
00049 /* Maximum value an `unsigned long' can hold. (Minimum is 0.) */
00050 #define ULONG_MAX       4294967295UL
00051 
00052 /* Minimum and maximum values a `signed long long' can hold */
00053 #define LLONG_MAX       9223372036854775807LL
00054 #define LLONG_MIN       (-LONG_MAX - 1LL)
00055 
00056 
00057 /* Maximum value an `unsigned long long' can hold. (Minimum is 0.) */
00058 #define ULLONG_MAX      18446744073709551615ULL
00059 
00060 
00061 #endif /* LIMITS_H */