Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/amd64/include Change {u, }int_fast{8, 16}_t to 32-bit...
details: https://anonhg.NetBSD.org/src/rev/ec8fed0687f7
branches: trunk
changeset: 566905:ec8fed0687f7
user: kleink <kleink%NetBSD.org@localhost>
date: Sun May 23 22:17:10 2004 +0000
description:
Change {u,}int_fast{8,16}_t to 32-bit types.
Note: While this is technically an ABI change I believe it is a
change that we can afford at this time (and to be pulled up to
2.0, which will be the first release for amd64). The types are
not widely used yet, and a survey of pkgsrc has not shown uses
that would be adversely affected by it.
diffstat:
sys/arch/amd64/include/int_fmtio.h | 22 +++++++++++-----------
sys/arch/amd64/include/int_mwgwtypes.h | 10 +++++-----
2 files changed, 16 insertions(+), 16 deletions(-)
diffs (88 lines):
diff -r c132d8f30149 -r ec8fed0687f7 sys/arch/amd64/include/int_fmtio.h
--- a/sys/arch/amd64/include/int_fmtio.h Sun May 23 21:12:06 2004 +0000
+++ b/sys/arch/amd64/include/int_fmtio.h Sun May 23 22:17:10 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: int_fmtio.h,v 1.2 2003/08/31 23:24:04 fvdl Exp $ */
+/* $NetBSD: int_fmtio.h,v 1.3 2004/05/23 22:17:10 kleink Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -147,8 +147,8 @@
#define SCNdLEAST16 "hd" /* int_least16_t */
#define SCNdLEAST32 "d" /* int_least32_t */
#define SCNdLEAST64 "ld" /* int_least64_t */
-#define SCNdFAST8 "hhd" /* int_fast8_t */
-#define SCNdFAST16 "hd" /* int_fast16_t */
+#define SCNdFAST8 "d" /* int_fast8_t */
+#define SCNdFAST16 "d" /* int_fast16_t */
#define SCNdFAST32 "d" /* int_fast32_t */
#define SCNdFAST64 "ld" /* int_fast64_t */
#define SCNdMAX "ld" /* intmax_t */
@@ -162,8 +162,8 @@
#define SCNiLEAST16 "hi" /* int_least16_t */
#define SCNiLEAST32 "i" /* int_least32_t */
#define SCNiLEAST64 "li" /* int_least64_t */
-#define SCNiFAST8 "hhi" /* int_fast8_t */
-#define SCNiFAST16 "hi" /* int_fast16_t */
+#define SCNiFAST8 "i" /* int_fast8_t */
+#define SCNiFAST16 "i" /* int_fast16_t */
#define SCNiFAST32 "i" /* int_fast32_t */
#define SCNiFAST64 "li" /* int_fast64_t */
#define SCNiMAX "li" /* intmax_t */
@@ -179,8 +179,8 @@
#define SCNoLEAST16 "ho" /* uint_least16_t */
#define SCNoLEAST32 "o" /* uint_least32_t */
#define SCNoLEAST64 "lo" /* uint_least64_t */
-#define SCNoFAST8 "hho" /* uint_fast8_t */
-#define SCNoFAST16 "ho" /* uint_fast16_t */
+#define SCNoFAST8 "o" /* uint_fast8_t */
+#define SCNoFAST16 "o" /* uint_fast16_t */
#define SCNoFAST32 "o" /* uint_fast32_t */
#define SCNoFAST64 "lo" /* uint_fast64_t */
#define SCNoMAX "lo" /* uintmax_t */
@@ -194,8 +194,8 @@
#define SCNuLEAST16 "hu" /* uint_least16_t */
#define SCNuLEAST32 "u" /* uint_least32_t */
#define SCNuLEAST64 "lu" /* uint_least64_t */
-#define SCNuFAST8 "hhu" /* uint_fast8_t */
-#define SCNuFAST16 "hu" /* uint_fast16_t */
+#define SCNuFAST8 "u" /* uint_fast8_t */
+#define SCNuFAST16 "u" /* uint_fast16_t */
#define SCNuFAST32 "u" /* uint_fast32_t */
#define SCNuFAST64 "lu" /* uint_fast64_t */
#define SCNuMAX "lu" /* uintmax_t */
@@ -209,8 +209,8 @@
#define SCNxLEAST16 "hx" /* uint_least16_t */
#define SCNxLEAST32 "x" /* uint_least32_t */
#define SCNxLEAST64 "lx" /* uint_least64_t */
-#define SCNxFAST8 "hhx" /* uint_fast8_t */
-#define SCNxFAST16 "hx" /* uint_fast16_t */
+#define SCNxFAST8 "x" /* uint_fast8_t */
+#define SCNxFAST16 "x" /* uint_fast16_t */
#define SCNxFAST32 "x" /* uint_fast32_t */
#define SCNxFAST64 "lx" /* uint_fast64_t */
#define SCNxMAX "lx" /* uintmax_t */
diff -r c132d8f30149 -r ec8fed0687f7 sys/arch/amd64/include/int_mwgwtypes.h
--- a/sys/arch/amd64/include/int_mwgwtypes.h Sun May 23 21:12:06 2004 +0000
+++ b/sys/arch/amd64/include/int_mwgwtypes.h Sun May 23 22:17:10 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: int_mwgwtypes.h,v 1.2 2003/08/31 23:24:04 fvdl Exp $ */
+/* $NetBSD: int_mwgwtypes.h,v 1.3 2004/05/23 22:17:10 kleink Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -55,10 +55,10 @@
typedef unsigned long int uint_least64_t;
/* 7.18.1.3 Fastest minimum-width integer types */
-typedef __signed char int_fast8_t;
-typedef unsigned char uint_fast8_t;
-typedef short int_fast16_t;
-typedef unsigned short uint_fast16_t;
+typedef int int_fast8_t;
+typedef unsigned int uint_fast8_t;
+typedef int int_fast16_t;
+typedef unsigned int uint_fast16_t;
typedef int int_fast32_t;
typedef unsigned int uint_fast32_t;
typedef long int int_fast64_t;
Home |
Main Index |
Thread Index |
Old Index