summaryrefslogtreecommitdiffstats
path: root/sys/arch/amd64/include/float.h
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2011-08-29 13:13:21 +0000
committerkettenis <kettenis@openbsd.org>2011-08-29 13:13:21 +0000
commit62958de03bcf767bbd149214e8f0dff18a27d68f (patch)
tree768ba58683cfc9419acdde1e2e93f1a8c2a22023 /sys/arch/amd64/include/float.h
parentUpdate firmware to the latest version available from Myricom (1.4.53a). (diff)
downloadwireguard-openbsd-62958de03bcf767bbd149214e8f0dff18a27d68f.tar.xz
wireguard-openbsd-62958de03bcf767bbd149214e8f0dff18a27d68f.zip
Only provide FLT_EVAL_METHOD for C99. Add missing DECIMAL_DIG for C99.
ok guenther@
Diffstat (limited to 'sys/arch/amd64/include/float.h')
-rw-r--r--sys/arch/amd64/include/float.h8
1 files changed, 7 insertions, 1 deletions
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_ */