R
Ravi Uday
Hi,
I have this in my limits.h file.
#if __INT_BITS__-0 == 64
#define LLONG_MIN (-9223372036854775807-1) /* minimum value of a
long long */
#define LLONG_MAX 9223372036854775807 /* maximum value of a
long long */
#define ULLONG_MAX 18446744073709551615U /* maximum value of an
unsigned long long */
#else
#if defined(__WATCOM_INT64__)
#define LLONG_MIN (-9223372036854775807I64-1) /* minimum value of a
long long */
#define LLONG_MAX 9223372036854775807I64 /* maximum value of a
long long */
#define ULLONG_MAX 18446744073709551615UI64 /* maximum value of an
unsigned long long */
#else
#define LLONG_MIN (-9223372036854775807LL-1) /* minimum value of a
long long */
#define LLONG_MAX 9223372036854775807LL /* maximum value of a
long long */
#define ULLONG_MAX 18446744073709551615ULL /* maximum value of an
unsigned long long */
#endif
#endif
can some-one help me with the defns.
Is unsigned long = unsigned int = unsinged long long ! in this case? (if
so why did they define that way )
(#define UINT_MAX 18446744073709551615U)
we use mips64, so which is the value of unsigned int long long it picks up.
TIA
- Ravi
I have this in my limits.h file.
#if __INT_BITS__-0 == 64
#define LLONG_MIN (-9223372036854775807-1) /* minimum value of a
long long */
#define LLONG_MAX 9223372036854775807 /* maximum value of a
long long */
#define ULLONG_MAX 18446744073709551615U /* maximum value of an
unsigned long long */
#else
#if defined(__WATCOM_INT64__)
#define LLONG_MIN (-9223372036854775807I64-1) /* minimum value of a
long long */
#define LLONG_MAX 9223372036854775807I64 /* maximum value of a
long long */
#define ULLONG_MAX 18446744073709551615UI64 /* maximum value of an
unsigned long long */
#else
#define LLONG_MIN (-9223372036854775807LL-1) /* minimum value of a
long long */
#define LLONG_MAX 9223372036854775807LL /* maximum value of a
long long */
#define ULLONG_MAX 18446744073709551615ULL /* maximum value of an
unsigned long long */
#endif
#endif
can some-one help me with the defns.
Is unsigned long = unsigned int = unsinged long long ! in this case? (if
so why did they define that way )
(#define UINT_MAX 18446744073709551615U)
we use mips64, so which is the value of unsigned int long long it picks up.
TIA
- Ravi