diff options
author | tijl <tijl@FreeBSD.org> | 2011-01-07 22:57:31 +0000 |
---|---|---|
committer | tijl <tijl@FreeBSD.org> | 2011-01-07 22:57:31 +0000 |
commit | 69f949273755bd7b19128d343d3b8312d044a102 (patch) | |
tree | 78a50239e3dcb3a14e744207803113620dde2dc4 /sys | |
parent | b7f688f9ee40cf29354333f91eb9a073ca07f786 (diff) | |
download | FreeBSD-src-69f949273755bd7b19128d343d3b8312d044a102.zip FreeBSD-src-69f949273755bd7b19128d343d3b8312d044a102.tar.gz |
Remove unused support for 64 bit long on 32 bit architectures.
It was used mainly to discover and fix some 64-bit portability problems
before 64-bit arches were widely available.
Discussed with: bde
Approved by: kib (mentor)
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arm/include/_limits.h | 11 | ||||
-rw-r--r-- | sys/i386/include/_limits.h | 11 | ||||
-rw-r--r-- | sys/mips/include/_limits.h | 14 | ||||
-rw-r--r-- | sys/powerpc/include/_limits.h | 9 |
4 files changed, 6 insertions, 39 deletions
diff --git a/sys/arm/include/_limits.h b/sys/arm/include/_limits.h index 0d9e492..db18d82 100644 --- a/sys/arm/include/_limits.h +++ b/sys/arm/include/_limits.h @@ -59,16 +59,9 @@ #define __INT_MAX 0x7fffffff /* max value for an int */ #define __INT_MIN (-0x7fffffff - 1) /* min value for an int */ -/* Bad hack for gcc configured to give 64-bit longs. */ -#ifdef _LARGE_LONG -#define __ULONG_MAX 0xffffffffffffffffUL -#define __LONG_MAX 0x7fffffffffffffffL -#define __LONG_MIN (-0x7fffffffffffffffL - 1) -#else #define __ULONG_MAX 0xffffffffUL /* max value for an unsigned long */ #define __LONG_MAX 0x7fffffffL /* max value for a long */ #define __LONG_MIN (-0x7fffffffL - 1) /* min value for a long */ -#endif /* max value for an unsigned long long */ #define __ULLONG_MAX 0xffffffffffffffffULL @@ -87,11 +80,7 @@ #define __QUAD_MAX __LLONG_MAX /* max value for a quad_t */ #define __QUAD_MIN __LLONG_MIN /* min value for a quad_t */ -#ifdef _LARGE_LONG -#define __LONG_BIT 64 -#else #define __LONG_BIT 32 -#endif #define __WORD_BIT 32 /* Minimum signal stack size. */ diff --git a/sys/i386/include/_limits.h b/sys/i386/include/_limits.h index f328951..43092de 100644 --- a/sys/i386/include/_limits.h +++ b/sys/i386/include/_limits.h @@ -59,16 +59,9 @@ #define __INT_MAX 0x7fffffff /* max value for an int */ #define __INT_MIN (-0x7fffffff - 1) /* min value for an int */ -/* Bad hack for gcc configured to give 64-bit longs. */ -#ifdef _LARGE_LONG -#define __ULONG_MAX 0xffffffffffffffffUL -#define __LONG_MAX 0x7fffffffffffffffL -#define __LONG_MIN (-0x7fffffffffffffffL - 1) -#else #define __ULONG_MAX 0xffffffffUL /* max value for an unsigned long */ #define __LONG_MAX 0x7fffffffL /* max value for a long */ #define __LONG_MIN (-0x7fffffffL - 1) /* min value for a long */ -#endif /* max value for an unsigned long long */ #define __ULLONG_MAX 0xffffffffffffffffULL @@ -87,11 +80,7 @@ #define __QUAD_MAX __LLONG_MAX /* max value for a quad_t */ #define __QUAD_MIN __LLONG_MIN /* min value for a quad_t */ -#ifdef _LARGE_LONG -#define __LONG_BIT 64 -#else #define __LONG_BIT 32 -#endif #define __WORD_BIT 32 /* diff --git a/sys/mips/include/_limits.h b/sys/mips/include/_limits.h index e160a7f4..435a61b 100644 --- a/sys/mips/include/_limits.h +++ b/sys/mips/include/_limits.h @@ -34,10 +34,6 @@ #ifndef _MACHINE__LIMITS_H_ #define _MACHINE__LIMITS_H_ -#if _MIPS_SZLONG == 64 -#define _LARGE_LONG -#endif - /* * According to ANSI (section 2.2.4.2), the values below must be usable by * #if preprocessing directives. Additionally, the expression must have the @@ -64,15 +60,16 @@ #define __INT_MAX 0x7fffffff /* max value for an int */ #define __INT_MIN (-0x7fffffff - 1) /* min value for an int */ -/* Bad hack for gcc configured to give 64-bit longs. */ -#ifdef _LARGE_LONG +#ifdef __LP64__ #define __ULONG_MAX 0xffffffffffffffffUL #define __LONG_MAX 0x7fffffffffffffffL #define __LONG_MIN (-0x7fffffffffffffffL - 1) +#define __LONG_BIT 64 #else #define __ULONG_MAX 0xffffffffUL /* max value for an unsigned long */ #define __LONG_MAX 0x7fffffffL /* max value for a long */ #define __LONG_MIN (-0x7fffffffL - 1) /* min value for a long */ +#define __LONG_BIT 32 #endif /* max value for an unsigned long long */ @@ -92,11 +89,6 @@ #define __QUAD_MAX __LLONG_MAX /* max value for a quad_t */ #define __QUAD_MIN __LLONG_MIN /* min value for a quad_t */ -#ifdef _LARGE_LONG -#define __LONG_BIT 64 -#else -#define __LONG_BIT 32 -#endif #define __WORD_BIT 32 #define __MINSIGSTKSZ (512 * 4) diff --git a/sys/powerpc/include/_limits.h b/sys/powerpc/include/_limits.h index 015a9f7..942372f 100644 --- a/sys/powerpc/include/_limits.h +++ b/sys/powerpc/include/_limits.h @@ -59,14 +59,16 @@ #define __INT_MAX 0x7fffffff /* max value for an int */ #define __INT_MIN (-0x7fffffff - 1) /* min value for an int */ -#if defined(_LARGE_LONG) || defined(__LP64__) +#ifdef __LP64__ #define __ULONG_MAX 0xffffffffffffffffUL #define __LONG_MAX 0x7fffffffffffffffL #define __LONG_MIN (-0x7fffffffffffffffL - 1) +#define __LONG_BIT 64 #else #define __ULONG_MAX 0xffffffffUL /* max value for an unsigned long */ #define __LONG_MAX 0x7fffffffL /* max value for a long */ #define __LONG_MIN (-0x7fffffffL - 1) /* min value for a long */ +#define __LONG_BIT 32 #endif #define __ULLONG_MAX 0xffffffffffffffffULL @@ -89,11 +91,6 @@ #define __QUAD_MAX __LLONG_MAX /* max value for a quad_t */ #define __QUAD_MIN __LLONG_MIN /* min value for a quad_t */ -#if defined(_LARGE_LONG) || defined(__LP64__) -#define __LONG_BIT 64 -#else -#define __LONG_BIT 32 -#endif #define __WORD_BIT 32 /* Minimum signal stack size. */ |