summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/arch/alpha/include/float.h8
-rw-r--r--sys/arch/amd64/include/float.h8
-rw-r--r--sys/arch/arm/include/float.h8
-rw-r--r--sys/arch/hppa/include/float.h8
-rw-r--r--sys/arch/hppa64/include/float.h8
-rw-r--r--sys/arch/i386/include/float.h8
-rw-r--r--sys/arch/ia64/include/float.h8
-rw-r--r--sys/arch/m68k/include/float.h8
-rw-r--r--sys/arch/m88k/include/float.h8
-rw-r--r--sys/arch/mips64/include/float.h8
-rw-r--r--sys/arch/powerpc/include/float.h8
-rw-r--r--sys/arch/sh/include/float.h8
-rw-r--r--sys/arch/sparc/include/float.h8
-rw-r--r--sys/arch/sparc64/include/float.h8
-rw-r--r--sys/arch/vax/include/float.h10
15 files changed, 107 insertions, 15 deletions
diff --git a/sys/arch/alpha/include/float.h b/sys/arch/alpha/include/float.h
index ebff790e170..8f58b49acef 100644
--- a/sys/arch/alpha/include/float.h
+++ b/sys/arch/alpha/include/float.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: float.h,v 1.8 2011/03/23 16:54:34 pirofti Exp $ */
+/* $OpenBSD: float.h,v 1.9 2011/08/29 13:13:21 kettenis Exp $ */
/* $NetBSD: float.h,v 1.4 1995/06/20 20:45:22 jtc Exp $ */
/*
@@ -41,7 +41,9 @@ __END_DECLS
#define FLT_RADIX 2 /* b */
#define FLT_ROUNDS __flt_rounds()
+#if __ISO_C_VISIBLE >= 1999
#define FLT_EVAL_METHOD 0 /* no promotions */
+#endif
#define FLT_MANT_DIG 24 /* p */
#define FLT_EPSILON 1.19209290E-07F /* b**(1-p) */
@@ -73,4 +75,8 @@ __END_DECLS
#define LDBL_MAX DBL_MAX
#define LDBL_MAX_10_EXP DBL_MAX_10_EXP
+#if __ISO_C_VISIBLE >= 1999
+#define DECIMAL_DIG 17
+#endif
+
#endif /* _MACHINE_FLOAT_H_ */
diff --git a/sys/arch/amd64/include/float.h b/sys/arch/amd64/include/float.h
index 6aab8daf03a..c80b7a1e413 100644
--- a/sys/arch/amd64/include/float.h
+++ b/sys/arch/amd64/include/float.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: float.h,v 1.4 2011/03/23 16:54:34 pirofti Exp $ */
+/* $OpenBSD: float.h,v 1.5 2011/08/29 13:13:21 kettenis Exp $ */
/* $NetBSD: float.h,v 1.8 1995/06/20 20:45:37 jtc Exp $ */
/*
@@ -43,7 +43,9 @@ __END_DECLS
#define FLT_RADIX 2 /* b */
#define FLT_ROUNDS __flt_rounds()
+#if __ISO_C_VISIBLE >= 1999
#define FLT_EVAL_METHOD 0 /* no promotions */
+#endif
#define FLT_MANT_DIG 24 /* p */
#define FLT_EPSILON 1.19209290E-07F /* b**(1-p) */
@@ -75,4 +77,8 @@ __END_DECLS
#define LDBL_MAX 1.18973149535723176502e+4932L
#define LDBL_MAX_10_EXP 4932
+#if __ISO_C_VISIBLE >= 1999
+#define DECIMAL_DIG 21
+#endif
+
#endif /* _MACHINE_FLOAT_H_ */
diff --git a/sys/arch/arm/include/float.h b/sys/arch/arm/include/float.h
index a97befef15e..e3e09fd183f 100644
--- a/sys/arch/arm/include/float.h
+++ b/sys/arch/arm/include/float.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: float.h,v 1.4 2011/03/23 16:54:34 pirofti Exp $ */
+/* $OpenBSD: float.h,v 1.5 2011/08/29 13:13:21 kettenis Exp $ */
/* $NetBSD: float.h,v 1.1 2001/01/10 19:02:06 bjh21 Exp $ */
/*
@@ -56,7 +56,9 @@ __END_DECLS
#define FLT_RADIX 2 /* b */
#define FLT_ROUNDS __flt_rounds()
+#if __ISO_C_VISIBLE >= 1999
#define FLT_EVAL_METHOD 0 /* no promotions */
+#endif
#define FLT_MANT_DIG 24 /* p */
#define FLT_EPSILON 1.19209290E-7F /* b**(1-p) */
@@ -88,4 +90,8 @@ __END_DECLS
#define LDBL_MAX DBL_MAX
#define LDBL_MAX_10_EXP DBL_MAX_10_EXP
+#if __ISO_C_VISIBLE >= 1999
+#define DECIMAL_DIG 17
+#endif
+
#endif /* _ARM_FLOAT_H_ */
diff --git a/sys/arch/hppa/include/float.h b/sys/arch/hppa/include/float.h
index bbbb538f453..f5df96d5736 100644
--- a/sys/arch/hppa/include/float.h
+++ b/sys/arch/hppa/include/float.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: float.h,v 1.10 2011/03/23 16:54:35 pirofti Exp $ */
+/* $OpenBSD: float.h,v 1.11 2011/08/29 13:13:21 kettenis Exp $ */
/*
* Copyright (c) 1989 Regents of the University of California.
@@ -42,7 +42,9 @@ __END_DECLS
#define FLT_RADIX 2
#define FLT_ROUNDS __flt_rounds()
+#if __ISO_C_VISIBLE >= 1999
#define FLT_EVAL_METHOD 0 /* no promotions */
+#endif
#define FLT_MANT_DIG 24
#define FLT_EPSILON 1.19209290E-07F
@@ -74,4 +76,8 @@ __END_DECLS
#define LDBL_MAX DBL_MAX
#define LDBL_MAX_10_EXP DBL_MAX_10_EXP
+#if __ISO_C_VISIBLE >= 1999
+#define DECIMAL_DIG 17
+#endif
+
#endif /* _MACHINE_FLOAT_H_ */
diff --git a/sys/arch/hppa64/include/float.h b/sys/arch/hppa64/include/float.h
index 26f275082b8..2ce00a4fd9a 100644
--- a/sys/arch/hppa64/include/float.h
+++ b/sys/arch/hppa64/include/float.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: float.h,v 1.4 2011/08/19 15:44:36 kettenis Exp $ */
+/* $OpenBSD: float.h,v 1.5 2011/08/29 13:13:21 kettenis Exp $ */
/*
* Copyright (c) 1989 Regents of the University of California.
@@ -42,7 +42,9 @@ __END_DECLS
#define FLT_RADIX 2
#define FLT_ROUNDS __flt_rounds()
+#if __ISO_C_VISIBLE >= 1999
#define FLT_EVAL_METHOD 0 /* no promotions */
+#endif
#define FLT_MANT_DIG 24
#define FLT_EPSILON 1.19209290E-07F
@@ -74,4 +76,8 @@ __END_DECLS
#define LDBL_MAX DBL_MAX
#define LDBL_MAX_10_EXP DBL_MAX_10_EXP
+#if __ISO_C_VISIBLE >= 1999
+#define DECIMAL_DIG 17
+#endif
+
#endif /* _MACHINE_FLOAT_H_ */
diff --git a/sys/arch/i386/include/float.h b/sys/arch/i386/include/float.h
index e31ba958ab8..8db2f8ffa9d 100644
--- a/sys/arch/i386/include/float.h
+++ b/sys/arch/i386/include/float.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: float.h,v 1.8 2011/03/23 16:54:35 pirofti Exp $ */
+/* $OpenBSD: float.h,v 1.9 2011/08/29 13:13:21 kettenis Exp $ */
/* $NetBSD: float.h,v 1.8 1995/06/20 20:45:37 jtc Exp $ */
/*
@@ -43,7 +43,9 @@ __END_DECLS
#define FLT_RADIX 2 /* b */
#define FLT_ROUNDS __flt_rounds()
+#if __ISO_C_VISIBLE >= 1999
#define FLT_EVAL_METHOD 2 /* long double */
+#endif
#define FLT_MANT_DIG 24 /* p */
#define FLT_EPSILON 1.19209290E-07F /* b**(1-p) */
@@ -75,4 +77,8 @@ __END_DECLS
#define LDBL_MAX 1.18973149535723176502e+4932L
#define LDBL_MAX_10_EXP 4932
+#if __ISO_C_VISIBLE >= 1999
+#define DECIMAL_DIG 21
+#endif
+
#endif /* _MACHINE_FLOAT_H_ */
diff --git a/sys/arch/ia64/include/float.h b/sys/arch/ia64/include/float.h
index f1d3e96d6a9..39ca4ba2a8e 100644
--- a/sys/arch/ia64/include/float.h
+++ b/sys/arch/ia64/include/float.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: float.h,v 1.1 2011/07/04 23:29:08 pirofti Exp $ */
+/* $OpenBSD: float.h,v 1.2 2011/08/29 13:13:21 kettenis Exp $ */
/* $NetBSD: float.h,v 1.8 1995/06/20 20:45:37 jtc Exp $ */
/*
@@ -43,7 +43,9 @@ __END_DECLS
#define FLT_RADIX 2 /* b */
#define FLT_ROUNDS __flt_rounds()
+#if __ISO_C_VISIBLE >= 1999
#define FLT_EVAL_METHOD 0 /* no promotions */
+#endif
#define FLT_MANT_DIG 24 /* p */
#define FLT_EPSILON 1.19209290E-07F /* b**(1-p) */
@@ -75,4 +77,8 @@ __END_DECLS
#define LDBL_MAX 1.18973149535723176502e+4932L
#define LDBL_MAX_10_EXP 4932
+#if __ISO_C_VISIBLE >= 1999
+#define DECIMAL_DIG 21
+#endif
+
#endif /* _IA64_FLOAT_H_ */
diff --git a/sys/arch/m68k/include/float.h b/sys/arch/m68k/include/float.h
index 954e5733512..0923677c27f 100644
--- a/sys/arch/m68k/include/float.h
+++ b/sys/arch/m68k/include/float.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: float.h,v 1.7 2008/09/07 20:36:06 martynas Exp $ */
+/* $OpenBSD: float.h,v 1.8 2011/08/29 13:13:21 kettenis Exp $ */
/* $NetBSD: float.h,v 1.10 1995/06/20 20:45:41 jtc Exp $ */
/*
@@ -43,7 +43,9 @@ __END_DECLS
#define FLT_RADIX 2 /* b */
#define FLT_ROUNDS __flt_rounds()
+#if __ISO_C_VISIBLE >= 1999
#define FLT_EVAL_METHOD 2 /* long double */
+#endif
#define FLT_MANT_DIG 24 /* p */
#define FLT_EPSILON 1.19209290E-07F /* b**(1-p) */
@@ -75,4 +77,8 @@ __END_DECLS
#define LDBL_MAX 1.18973149535723176502e+4932L
#define LDBL_MAX_10_EXP 4932
+#if __ISO_C_VISIBLE >= 1999
+#define DECIMAL_DIG 21
+#endif
+
#endif /* !_M68K_FLOAT_H_ */
diff --git a/sys/arch/m88k/include/float.h b/sys/arch/m88k/include/float.h
index cd903f51969..bd18f8e80e3 100644
--- a/sys/arch/m88k/include/float.h
+++ b/sys/arch/m88k/include/float.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: float.h,v 1.4 2011/03/23 16:54:35 pirofti Exp $ */
+/* $OpenBSD: float.h,v 1.5 2011/08/29 13:13:21 kettenis Exp $ */
/*
* Copyright (c) 1989 Regents of the University of California.
@@ -42,7 +42,9 @@ __END_DECLS
#define FLT_RADIX 2 /* b */
#define FLT_ROUNDS __flt_rounds()
+#if __ISO_C_VISIBLE >= 1999
#define FLT_EVAL_METHOD 2 /* long double */
+#endif
#define FLT_MANT_DIG 24 /* p */
#define FLT_EPSILON 1.19209290E-07F /* b**(1-p) */
@@ -74,4 +76,8 @@ __END_DECLS
#define LDBL_MAX 1.18973149535723176502e+4932L
#define LDBL_MAX_10_EXP 4932
+#if __ISO_C_VISIBLE >= 1999
+#define DECIMAL_DIG 21
+#endif
+
#endif /* _M88K_FLOAT_H_ */
diff --git a/sys/arch/mips64/include/float.h b/sys/arch/mips64/include/float.h
index 3e9c05ada9e..ce9198bd9e5 100644
--- a/sys/arch/mips64/include/float.h
+++ b/sys/arch/mips64/include/float.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: float.h,v 1.7 2011/03/23 16:54:36 pirofti Exp $ */
+/* $OpenBSD: float.h,v 1.8 2011/08/29 13:13:21 kettenis Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -42,7 +42,9 @@ __END_DECLS
#define FLT_RADIX 2 /* b */
#define FLT_ROUNDS __flt_rounds()
+#if __ISO_C_VISIBLE >= 1999
#define FLT_EVAL_METHOD 0 /* no promotions */
+#endif
#define FLT_MANT_DIG 24 /* p */
#define FLT_EPSILON 1.19209290E-07F /* b**(1-p) */
@@ -74,4 +76,8 @@ __END_DECLS
#define LDBL_MAX 1.18973149535723176508575932662800702e+4932L
#define LDBL_MAX_10_EXP 4932
+#if __ISO_C_VISIBLE >= 1999
+#define DECIMAL_DIG 36
+#endif
+
#endif /* !_MIPS64_FLOAT_H_ */
diff --git a/sys/arch/powerpc/include/float.h b/sys/arch/powerpc/include/float.h
index 38b4e0b8e17..b56343a51de 100644
--- a/sys/arch/powerpc/include/float.h
+++ b/sys/arch/powerpc/include/float.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: float.h,v 1.8 2008/07/21 20:50:55 martynas Exp $ */
+/* $OpenBSD: float.h,v 1.9 2011/08/29 13:13:21 kettenis Exp $ */
/*
* Copyright (c) 1989 Regents of the University of California.
@@ -42,7 +42,9 @@ __END_DECLS
#define FLT_RADIX 2 /* b */
#define FLT_ROUNDS __flt_rounds()
+#if __ISO_C_VISIBLE >= 1999
#define FLT_EVAL_METHOD 0 /* no promotions */
+#endif
#define FLT_MANT_DIG 24 /* p */
#define FLT_EPSILON 1.19209290E-07F /* b**(1-p) */
@@ -74,4 +76,8 @@ __END_DECLS
#define LDBL_MAX DBL_MAX
#define LDBL_MAX_10_EXP DBL_MAX_10_EXP
+#if __ISO_C_VISIBLE >= 1999
+#define DECIMAL_DIG 17
+#endif
+
#endif /* _POWERPC_FLOAT_H_ */
diff --git a/sys/arch/sh/include/float.h b/sys/arch/sh/include/float.h
index 9d8f67f7f06..bdcbdbc0958 100644
--- a/sys/arch/sh/include/float.h
+++ b/sys/arch/sh/include/float.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: float.h,v 1.2 2008/07/21 20:50:55 martynas Exp $ */
+/* $OpenBSD: float.h,v 1.3 2011/08/29 13:13:21 kettenis Exp $ */
/*
* Copyright (c) 1989 Regents of the University of California.
@@ -42,7 +42,9 @@ __END_DECLS
#define FLT_RADIX 2 /* b */
#define FLT_ROUNDS __flt_rounds()
+#if __ISO_C_VISIBLE >= 1999
#define FLT_EVAL_METHOD 0 /* no promotions */
+#endif
#define FLT_MANT_DIG 24 /* p */
#define FLT_EPSILON 1.19209290E-07F /* b**(1-p) */
@@ -74,4 +76,8 @@ __END_DECLS
#define LDBL_MAX DBL_MAX
#define LDBL_MAX_10_EXP DBL_MAX_10_EXP
+#if __ISO_C_VISIBLE >= 1999
+#define DECIMAL_DIG 17
+#endif
+
#endif /* _SH_FLOAT_H_ */
diff --git a/sys/arch/sparc/include/float.h b/sys/arch/sparc/include/float.h
index d0c56ccb2ed..436853821ae 100644
--- a/sys/arch/sparc/include/float.h
+++ b/sys/arch/sparc/include/float.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: float.h,v 1.7 2011/03/23 16:54:37 pirofti Exp $ */
+/* $OpenBSD: float.h,v 1.8 2011/08/29 13:13:21 kettenis Exp $ */
/* $NetBSD: float.h,v 1.6 1997/07/18 05:11:52 thorpej Exp $ */
/*
@@ -52,7 +52,9 @@ __END_DECLS
#define FLT_RADIX 2 /* b */
#define FLT_ROUNDS __flt_rounds()
+#if __ISO_C_VISIBLE >= 1999
#define FLT_EVAL_METHOD 0 /* no promotions */
+#endif
#define FLT_MANT_DIG 24 /* p */
#define FLT_EPSILON 1.19209290E-07F /* b**(1-p) */
@@ -84,4 +86,8 @@ __END_DECLS
#define LDBL_MAX DBL_MAX
#define LDBL_MAX_10_EXP DBL_MAX_10_EXP
+#if __ISO_C_VISIBLE >= 1999
+#define DECIMAL_DIG 17
+#endif
+
#endif /* _MACHINE_FLOAT_H_ */
diff --git a/sys/arch/sparc64/include/float.h b/sys/arch/sparc64/include/float.h
index c91197f83d2..16939fd7cd1 100644
--- a/sys/arch/sparc64/include/float.h
+++ b/sys/arch/sparc64/include/float.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: float.h,v 1.6 2011/03/23 16:54:37 pirofti Exp $ */
+/* $OpenBSD: float.h,v 1.7 2011/08/29 13:13:21 kettenis Exp $ */
/* $NetBSD: float.h,v 1.3 2001/09/21 20:48:02 eeh Exp $ */
/*
@@ -52,7 +52,9 @@ __END_DECLS
#define FLT_RADIX 2 /* b */
#define FLT_ROUNDS __flt_rounds()
+#if __ISO_C_VISIBLE >= 1999
#define FLT_EVAL_METHOD 0 /* no promotions */
+#endif
#define FLT_MANT_DIG 24 /* p */
#define FLT_EPSILON 1.19209290E-07F /* b**(1-p) */
@@ -84,4 +86,8 @@ __END_DECLS
#define LDBL_MAX 1.189731495357231765085759326628007016E+4932L
#define LDBL_MAX_10_EXP (+4932)
+#if __ISO_C_VISIBLE >= 1999
+#define DECIMAL_DIG 36
+#endif
+
#endif /* _MACHINE_FLOAT_H_ */
diff --git a/sys/arch/vax/include/float.h b/sys/arch/vax/include/float.h
index ceb63589fbd..eec2c68c6c0 100644
--- a/sys/arch/vax/include/float.h
+++ b/sys/arch/vax/include/float.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: float.h,v 1.8 2011/03/23 16:54:37 pirofti Exp $ */
+/* $OpenBSD: float.h,v 1.9 2011/08/29 13:13:21 kettenis Exp $ */
/* $NetBSD: float.h,v 1.5 1998/10/10 02:13:55 matt Exp $ */
/*
@@ -35,9 +35,13 @@
#ifndef _MACHINE_FLOAT_H_
#define _MACHINE_FLOAT_H_
+#include <sys/cdefs.h>
+
#define FLT_RADIX 2 /* b */
#define FLT_ROUNDS 1 /* FP addition rounds to nearest */
+#if __ISO_C_VISIBLE >= 1999
#define FLT_EVAL_METHOD 0 /* no promotions */
+#endif
#define FLT_MANT_DIG 24 /* p */
#define FLT_EPSILON 1.19209290E-7F /* b**(1-p) */
@@ -73,4 +77,8 @@
#define LDBL_MAX DBL_MAX
#define LDBL_MAX_10_EXP DBL_MAX_10_EXP
+#if __ISO_C_VISIBLE >= 1999
+#define DECIMAL_DIG 18
+#endif
+
#endif /* _MACHINE_FLOAT_H_ */