Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch Unify sparc{,64} headers once again; restore 32-bit...



details:   https://anonhg.NetBSD.org/src/rev/832219ce8ed8
branches:  trunk
changeset: 516092:832219ce8ed8
user:      kleink <kleink%NetBSD.org@localhost>
date:      Mon Oct 15 19:49:16 2001 +0000

description:
Unify sparc{,64} headers once again; restore 32-bit sparc64 ABI.

diffstat:

 sys/arch/sparc/include/int_mwgwtypes.h   |  17 ++++++++++++++++-
 sys/arch/sparc64/include/int_mwgwtypes.h |  19 +++++++++++++++++--
 2 files changed, 33 insertions(+), 3 deletions(-)

diffs (75 lines):

diff -r 098d96d37f27 -r 832219ce8ed8 sys/arch/sparc/include/int_mwgwtypes.h
--- a/sys/arch/sparc/include/int_mwgwtypes.h    Mon Oct 15 18:28:28 2001 +0000
+++ b/sys/arch/sparc/include/int_mwgwtypes.h    Mon Oct 15 19:49:16 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: int_mwgwtypes.h,v 1.3 2001/10/14 20:11:11 kleink Exp $ */
+/*     $NetBSD: int_mwgwtypes.h,v 1.4 2001/10/15 19:49:16 kleink Exp $ */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -68,12 +68,27 @@
 
 /* 7.18.1.3 Fastest minimum-width integer types */
 
+#ifdef __arch64__
+typedef        long int                   int_fast8_t;
+typedef        unsigned char             uint_fast8_t;
+#else
 typedef        int                        int_fast8_t;
 typedef        unsigned int              uint_fast8_t;
+#endif
+#ifdef __arch64__
+typedef        long int                  int_fast16_t;
+typedef        unsigned short int       uint_fast16_t;
+#else
 typedef        int                       int_fast16_t;
 typedef        unsigned int             uint_fast16_t;
+#endif
+#ifdef __arch64__
+typedef        long int                  int_fast32_t;
+typedef        unsigned int             uint_fast32_t;
+#else
 typedef        int                       int_fast32_t;
 typedef        unsigned int             uint_fast32_t;
+#endif
 #ifdef __COMPILER_INT64__
 typedef        __COMPILER_INT64__        int_fast64_t;
 typedef        __COMPILER_UINT64__      uint_fast64_t;
diff -r 098d96d37f27 -r 832219ce8ed8 sys/arch/sparc64/include/int_mwgwtypes.h
--- a/sys/arch/sparc64/include/int_mwgwtypes.h  Mon Oct 15 18:28:28 2001 +0000
+++ b/sys/arch/sparc64/include/int_mwgwtypes.h  Mon Oct 15 19:49:16 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: int_mwgwtypes.h,v 1.4 2001/10/14 20:11:11 kleink Exp $ */
+/*     $NetBSD: int_mwgwtypes.h,v 1.5 2001/10/15 19:49:17 kleink Exp $ */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -68,12 +68,27 @@
 
 /* 7.18.1.3 Fastest minimum-width integer types */
 
+#ifdef __arch64__
 typedef        long int                   int_fast8_t;
 typedef        unsigned char             uint_fast8_t;
+#else
+typedef        int                        int_fast8_t;
+typedef        unsigned int              uint_fast8_t;
+#endif
+#ifdef __arch64__
 typedef        long int                  int_fast16_t;
-typedef        unsigned short           uint_fast16_t;
+typedef        unsigned short int       uint_fast16_t;
+#else
+typedef        int                       int_fast16_t;
+typedef        unsigned int             uint_fast16_t;
+#endif
+#ifdef __arch64__
 typedef        long int                  int_fast32_t;
 typedef        unsigned int             uint_fast32_t;
+#else
+typedef        int                       int_fast32_t;
+typedef        unsigned int             uint_fast32_t;
+#endif
 #ifdef __COMPILER_INT64__
 typedef        __COMPILER_INT64__        int_fast64_t;
 typedef        __COMPILER_UINT64__      uint_fast64_t;



Home | Main Index | Thread Index | Old Index