diff options
author | Martynas Venckus <martynas@cvs.openbsd.org> | 2008-07-21 20:50:56 +0000 |
---|---|---|
committer | Martynas Venckus <martynas@cvs.openbsd.org> | 2008-07-21 20:50:56 +0000 |
commit | 37072fdb15d462086950f52b161458da21410437 (patch) | |
tree | 08b3103a696c4c6bc6850f837614a32e9c961258 /sys/arch/sparc64/include | |
parent | d079b58d526fee9d549fe05a31c7814d92dd6f28 (diff) |
- 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@
Diffstat (limited to 'sys/arch/sparc64/include')
-rw-r--r-- | sys/arch/sparc64/include/_types.h | 4 | ||||
-rw-r--r-- | sys/arch/sparc64/include/float.h | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/sys/arch/sparc64/include/_types.h b/sys/arch/sparc64/include/_types.h index c9b18cf22b6..38510638a6b 100644 --- a/sys/arch/sparc64/include/_types.h +++ b/sys/arch/sparc64/include/_types.h @@ -1,4 +1,4 @@ -/* $OpenBSD: _types.h,v 1.7 2007/05/16 17:27:30 art Exp $ */ +/* $OpenBSD: _types.h,v 1.8 2008/07/21 20:50:55 martynas Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -99,6 +99,8 @@ typedef unsigned long __psize_t; /* Standard system types */ typedef int __clock_t; typedef int __clockid_t; +typedef double __double_t; +typedef float __float_t; typedef long long __off_t; typedef long __ptrdiff_t; typedef unsigned long __size_t; diff --git a/sys/arch/sparc64/include/float.h b/sys/arch/sparc64/include/float.h index 7e7e5efb493..a65587d8b65 100644 --- a/sys/arch/sparc64/include/float.h +++ b/sys/arch/sparc64/include/float.h @@ -1,4 +1,4 @@ -/* $OpenBSD: float.h,v 1.4 2003/06/02 23:27:56 millert Exp $ */ +/* $OpenBSD: float.h,v 1.5 2008/07/21 20:50:55 martynas Exp $ */ /* $NetBSD: float.h,v 1.3 2001/09/21 20:48:02 eeh Exp $ */ /* @@ -52,6 +52,7 @@ __END_DECLS #define FLT_RADIX 2 /* b */ #define FLT_ROUNDS __flt_rounds() +#define FLT_EVAL_METHOD 0 /* no promotions */ #define FLT_MANT_DIG 24 /* p */ #define FLT_EPSILON 1.19209290E-07F /* b**(1-p) */ |