diff options
| author | Chris Lattner <sabre@nondot.org> | 2004-06-04 20:58:34 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2004-06-04 20:58:34 +0000 |
| commit | 603b1ca393a133b2dd4e4a139e4e8e4fde3a2705 (patch) | |
| tree | 62d3dabf9580c8b6685a66d1544e404a8351c4d7 /llvm/include | |
| parent | 78faa9a9e692970ab0ff595ffae7d90d8cb64b99 (diff) | |
| download | bcm5719-llvm-603b1ca393a133b2dd4e4a139e4e8e4fde3a2705.tar.gz bcm5719-llvm-603b1ca393a133b2dd4e4a139e4e8e4fde3a2705.zip | |
Add some constants for VC
llvm-svn: 14028
Diffstat (limited to 'llvm/include')
| -rw-r--r-- | llvm/include/Support/DataTypes.h.in | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/llvm/include/Support/DataTypes.h.in b/llvm/include/Support/DataTypes.h.in index 0690ee7e58f..b1f14b26d50 100644 --- a/llvm/include/Support/DataTypes.h.in +++ b/llvm/include/Support/DataTypes.h.in @@ -11,9 +11,8 @@ // This file is important because different host OS's define different macros, // which makes portability tough. This file exports the following definitions: // -// int64_t : is a typedef for the signed 64 bit system type -// uint64_t : is a typedef for the unsigned 64 bit system type -// INT64_MAX : is a #define specifying the max value for int64_t's +// [u]int(32|64)_t : typedefs for signed and unsigned 32/64 bit system types +// [U]INT(8|16|32|64)_(MIN|MAX) : Constants for the min and max values. // // No library is required when using these functinons. // @@ -42,6 +41,15 @@ typedef unsigned __int64 uint64_t; typedef signed int int32_t; typedef unsigned int uint32_t; typedef signed int ssize_t; +#define INT8_MAX 127 +#define INT8_MIN -128 +#define UINT8_MAX 255 +#define INT16_MAX 32767 +#define INT16_MIN -32768 +#define UINT16_MAX 65535 +#define INT32_MAX 2147483647 +#define INT32_MIN -2147483648 +#define UINT32_MAX 4294967295U #endif #if !defined(INT64_MAX) |

