summaryrefslogtreecommitdiff
path: root/sys/arch/hppa
diff options
context:
space:
mode:
authorMartynas Venckus <martynas@cvs.openbsd.org>2008-07-21 20:50:56 +0000
committerMartynas Venckus <martynas@cvs.openbsd.org>2008-07-21 20:50:56 +0000
commit37072fdb15d462086950f52b161458da21410437 (patch)
tree08b3103a696c4c6bc6850f837614a32e9c961258 /sys/arch/hppa
parentd079b58d526fee9d549fe05a31c7814d92dd6f28 (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/hppa')
-rw-r--r--sys/arch/hppa/include/_types.h4
-rw-r--r--sys/arch/hppa/include/float.h3
2 files changed, 5 insertions, 2 deletions
diff --git a/sys/arch/hppa/include/_types.h b/sys/arch/hppa/include/_types.h
index c1b8062d201..a25871e696e 100644
--- a/sys/arch/hppa/include/_types.h
+++ b/sys/arch/hppa/include/_types.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: _types.h,v 1.9 2008/04/27 14:36:38 kettenis Exp $ */
+/* $OpenBSD: _types.h,v 1.10 2008/07/21 20:50:54 martynas Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -101,6 +101,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/hppa/include/float.h b/sys/arch/hppa/include/float.h
index a9f06b68e1a..490231408e3 100644
--- a/sys/arch/hppa/include/float.h
+++ b/sys/arch/hppa/include/float.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: float.h,v 1.8 2007/07/16 21:20:03 jason Exp $ */
+/* $OpenBSD: float.h,v 1.9 2008/07/21 20:50:54 martynas Exp $ */
/*
* Copyright (c) 1989 Regents of the University of California.
@@ -42,6 +42,7 @@ __END_DECLS
#define FLT_RADIX 2
#define FLT_ROUNDS __flt_rounds()
+#define FLT_EVAL_METHOD 0 /* no promotions */
#define FLT_MANT_DIG 24
#define FLT_EPSILON 1.19209290E-07F