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/hppa64 | |
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/hppa64')
-rw-r--r-- | sys/arch/hppa64/include/_types.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/sys/arch/hppa64/include/_types.h b/sys/arch/hppa64/include/_types.h index 84cf50aac4c..75ef9282688 100644 --- a/sys/arch/hppa64/include/_types.h +++ b/sys/arch/hppa64/include/_types.h @@ -1,4 +1,4 @@ -/* $OpenBSD: _types.h,v 1.6 2011/03/23 16:54:35 pirofti Exp $ */ +/* $OpenBSD: _types.h,v 1.7 2011/09/08 02:47:13 guenther Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -80,6 +80,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; |