Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-2-0]: src/sys/arch/i386/include Pull up revision 1.5 (requested b...
details: https://anonhg.NetBSD.org/src/rev/bba9fbda6430
branches: netbsd-2-0
changeset: 561063:bba9fbda6430
user: he <he%NetBSD.org@localhost>
date: Sat May 22 18:04:46 2004 +0000
description:
Pull up revision 1.5 (requested by kleink in ticket #376):
Change {u,}int_fast16_t to 32-bit types, as the previous
minimum-width implementation was a rather poor choice.
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). The types are not widely used yet, and
a survey of pkgsrc has not shown uses that would be adversely
affected by it.
Reverses preivous commit with respect to 8-bit types.
diffstat:
sys/arch/i386/include/int_limits.h | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (32 lines):
diff -r b7697d3ed18d -r bba9fbda6430 sys/arch/i386/include/int_limits.h
--- a/sys/arch/i386/include/int_limits.h Sat May 22 18:03:52 2004 +0000
+++ b/sys/arch/i386/include/int_limits.h Sat May 22 18:04:46 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: int_limits.h,v 1.2.28.1 2004/05/22 17:46:14 he Exp $ */
+/* $NetBSD: int_limits.h,v 1.2.28.2 2004/05/22 18:04:46 he Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -86,19 +86,19 @@
/* 7.18.2.3 Limits of fastest minimum-width integer types */
/* minimum values of fastest minimum-width signed integer types */
-#define INT_FAST8_MIN (-0x7fffffff-1) /* int_fast8_t */
+#define INT_FAST8_MIN (-0x7f-1) /* int_fast8_t */
#define INT_FAST16_MIN (-0x7fffffff-1) /* int_fast16_t */
#define INT_FAST32_MIN (-0x7fffffff-1) /* int_fast32_t */
#define INT_FAST64_MIN (-0x7fffffffffffffffLL-1) /* int_fast64_t */
/* maximum values of fastest minimum-width signed integer types */
-#define INT_FAST8_MAX 0x7fffffff /* int_fast8_t */
+#define INT_FAST8_MAX 0x7f /* int_fast8_t */
#define INT_FAST16_MAX 0x7fffffff /* int_fast16_t */
#define INT_FAST32_MAX 0x7fffffff /* int_fast32_t */
#define INT_FAST64_MAX 0x7fffffffffffffffLL /* int_fast64_t */
/* maximum values of fastest minimum-width unsigned integer types */
-#define UINT_FAST8_MAX 0xffffffffU /* uint_fast8_t */
+#define UINT_FAST8_MAX 0xffU /* uint_fast8_t */
#define UINT_FAST16_MAX 0xffffffffU /* uint_fast16_t */
#define UINT_FAST32_MAX 0xffffffffU /* uint_fast32_t */
#define UINT_FAST64_MAX 0xffffffffffffffffULL /* uint_fast64_t */
Home |
Main Index |
Thread Index |
Old Index