diff options
author | Philip Guenthe <guenther@cvs.openbsd.org> | 2011-09-08 02:47:14 +0000 |
---|---|---|
committer | Philip Guenthe <guenther@cvs.openbsd.org> | 2011-09-08 02:47:14 +0000 |
commit | 6f53e4ebb844e940e8bd7264ebb259719834ebe2 (patch) | |
tree | d9d27c61dfa337ee15e9d5ac73b8c71404a8091b /sys/arch/m88k | |
parent | 77a110e26f7764454ab85ae22fd6a0a8d080cba8 (diff) |
Make the INT_FAST*_{MIN,MAX} macros match the types they're defined to.
Since the underlying types of the int_fast types are set by machine/_types.h,
put internal macros in that same file and define the exposed
INT_FAST*_{MIN,MAX} macros from those.
ok millert@, kettenis@
Diffstat (limited to 'sys/arch/m88k')
-rw-r--r-- | sys/arch/m88k/include/_types.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/sys/arch/m88k/include/_types.h b/sys/arch/m88k/include/_types.h index af2fa55ee04..a6c63f9d1fb 100644 --- a/sys/arch/m88k/include/_types.h +++ b/sys/arch/m88k/include/_types.h @@ -1,4 +1,4 @@ -/* $OpenBSD: _types.h,v 1.7 2009/11/04 19:14:09 kettenis Exp $ */ +/* $OpenBSD: _types.h,v 1.8 2011/09/08 02:47:13 guenther Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -72,6 +72,18 @@ typedef __int32_t __int_fast32_t; typedef __uint32_t __uint_fast32_t; typedef __int64_t __int_fast64_t; typedef __uint64_t __uint_fast64_t; +#define __INT_FAST8_MIN INT32_MIN +#define __INT_FAST16_MIN INT32_MIN +#define __INT_FAST32_MIN INT32_MIN +#define __INT_FAST64_MIN INT64_MIN +#define __INT_FAST8_MAX INT32_MAX +#define __INT_FAST16_MAX INT32_MAX +#define __INT_FAST32_MAX INT32_MAX +#define __INT_FAST64_MAX INT64_MAX +#define __UINT_FAST8_MAX UINT32_MAX +#define __UINT_FAST16_MAX UINT32_MAX +#define __UINT_FAST32_MAX UINT32_MAX +#define __UINT_FAST64_MAX UINT64_MAX /* 7.18.1.4 Integer types capable of holding object pointers */ typedef long __intptr_t; |