From 37072fdb15d462086950f52b161458da21410437 Mon Sep 17 00:00:00 2001 From: Martynas Venckus Date: Mon, 21 Jul 2008 20:50:56 +0000 Subject: - add proper double_t and float_t definitions for each arch - math.h shouldn't define FLT_EVAL_METHOD, but float.h should (per C99). remove from math.h, and add proper definitions in float.h ok millert@ --- sys/arch/i386/include/_types.h | 4 +++- sys/arch/i386/include/float.h | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'sys/arch/i386/include') diff --git a/sys/arch/i386/include/_types.h b/sys/arch/i386/include/_types.h index 81481c9162f..84998e0556d 100644 --- a/sys/arch/i386/include/_types.h +++ b/sys/arch/i386/include/_types.h @@ -1,4 +1,4 @@ -/* $OpenBSD: _types.h,v 1.8 2008/05/07 20:42:02 kettenis Exp $ */ +/* $OpenBSD: _types.h,v 1.9 2008/07/21 20:50:54 martynas Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -93,6 +93,8 @@ typedef unsigned long __psize_t; /* Standard system types */ typedef int __clock_t; typedef int __clockid_t; +typedef long double __double_t; +typedef long double __float_t; typedef long long __off_t; typedef long __ptrdiff_t; typedef unsigned long __size_t; diff --git a/sys/arch/i386/include/float.h b/sys/arch/i386/include/float.h index fd74a076d5d..e2f99895e0c 100644 --- a/sys/arch/i386/include/float.h +++ b/sys/arch/i386/include/float.h @@ -1,4 +1,4 @@ -/* $OpenBSD: float.h,v 1.6 2006/10/01 18:14:40 kettenis Exp $ */ +/* $OpenBSD: float.h,v 1.7 2008/07/21 20:50:54 martynas Exp $ */ /* $NetBSD: float.h,v 1.8 1995/06/20 20:45:37 jtc Exp $ */ /* @@ -43,6 +43,7 @@ __END_DECLS #define FLT_RADIX 2 /* b */ #define FLT_ROUNDS __flt_rounds() +#define FLT_EVAL_METHOD 2 /* long double */ #define FLT_MANT_DIG 24 /* p */ #define FLT_EPSILON 1.19209290E-07F /* b**(1-p) */ -- cgit v1.2.3