From 6f53e4ebb844e940e8bd7264ebb259719834ebe2 Mon Sep 17 00:00:00 2001 From: Philip Guenthe Date: Thu, 8 Sep 2011 02:47:14 +0000 Subject: 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@ --- sys/arch/hppa/include/_types.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'sys/arch/hppa/include') diff --git a/sys/arch/hppa/include/_types.h b/sys/arch/hppa/include/_types.h index feae0162791..a8293327c7f 100644 --- a/sys/arch/hppa/include/_types.h +++ b/sys/arch/hppa/include/_types.h @@ -1,4 +1,4 @@ -/* $OpenBSD: _types.h,v 1.12 2011/03/23 16:54:35 pirofti Exp $ */ +/* $OpenBSD: _types.h,v 1.13 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; -- cgit v1.2.3