forked from boostorg/integer
Change logic so that int32_t etc is an int rather than a long where possible.
[SVN r65299]
This commit is contained in:
@ -256,20 +256,27 @@ namespace boost
|
|||||||
|
|
||||||
// 32-bit types -----------------------------------------------------------//
|
// 32-bit types -----------------------------------------------------------//
|
||||||
|
|
||||||
# if ULONG_MAX == 0xffffffff
|
# if UINT_MAX == 0xffffffff
|
||||||
typedef long int32_t;
|
|
||||||
typedef long int_least32_t;
|
|
||||||
typedef long int_fast32_t;
|
|
||||||
typedef unsigned long uint32_t;
|
|
||||||
typedef unsigned long uint_least32_t;
|
|
||||||
typedef unsigned long uint_fast32_t;
|
|
||||||
# elif UINT_MAX == 0xffffffff
|
|
||||||
typedef int int32_t;
|
typedef int int32_t;
|
||||||
typedef int int_least32_t;
|
typedef int int_least32_t;
|
||||||
typedef int int_fast32_t;
|
typedef int int_fast32_t;
|
||||||
typedef unsigned int uint32_t;
|
typedef unsigned int uint32_t;
|
||||||
typedef unsigned int uint_least32_t;
|
typedef unsigned int uint_least32_t;
|
||||||
typedef unsigned int uint_fast32_t;
|
typedef unsigned int uint_fast32_t;
|
||||||
|
# elif (USHRT_MAX == 0xffffffff)
|
||||||
|
typedef short int32_t;
|
||||||
|
typedef short int_least32_t;
|
||||||
|
typedef short int_fast32_t;
|
||||||
|
typedef unsigned short uint32_t;
|
||||||
|
typedef unsigned short uint_least32_t;
|
||||||
|
typedef unsigned short uint_fast32_t;
|
||||||
|
# elif ULONG_MAX == 0xffffffff
|
||||||
|
typedef long int32_t;
|
||||||
|
typedef long int_least32_t;
|
||||||
|
typedef long int_fast32_t;
|
||||||
|
typedef unsigned long uint32_t;
|
||||||
|
typedef unsigned long uint_least32_t;
|
||||||
|
typedef unsigned long uint_fast32_t;
|
||||||
# elif (UINT_MAX == 0xffffffffffffffff) && defined(__MTA__)
|
# elif (UINT_MAX == 0xffffffffffffffff) && defined(__MTA__)
|
||||||
// Integers are 64 bits on the MTA / XMT
|
// Integers are 64 bits on the MTA / XMT
|
||||||
typedef __int32 int32_t;
|
typedef __int32 int32_t;
|
||||||
|
Reference in New Issue
Block a user