summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/include
diff options
context:
space:
mode:
authortijl <tijl@FreeBSD.org>2011-01-07 22:57:31 +0000
committertijl <tijl@FreeBSD.org>2011-01-07 22:57:31 +0000
commit69f949273755bd7b19128d343d3b8312d044a102 (patch)
tree78a50239e3dcb3a14e744207803113620dde2dc4 /sys/powerpc/include
parentb7f688f9ee40cf29354333f91eb9a073ca07f786 (diff)
downloadFreeBSD-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/powerpc/include')
-rw-r--r--sys/powerpc/include/_limits.h9
1 files changed, 3 insertions, 6 deletions
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. */
OpenPOWER on IntegriCloud