summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSzabolcs Nagy <nsz@port70.net>2014-08-27 08:47:19 +0200
committerRich Felker <dalias@aerifal.cx>2014-08-27 02:54:01 -0400
commit18dde0071334e2e7f71972b80df7779280c801cf (patch)
treed75b7092dc08f3224fa5dbd86b500eae5dc2f751 /include
parent8d998a7b3b741304df860b5dc843826257633237 (diff)
downloadmusl-18dde0071334e2e7f71972b80df7779280c801cf.tar.gz
musl-18dde0071334e2e7f71972b80df7779280c801cf.tar.bz2
musl-18dde0071334e2e7f71972b80df7779280c801cf.tar.xz
musl-18dde0071334e2e7f71972b80df7779280c801cf.zip
add C11 floating-point characteristic macros to float.h
C11 introduced *_DECIMAL_DIG and *_HAS_SUBNORM macros.
Diffstat (limited to 'include')
-rw-r--r--include/float.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/float.h b/include/float.h
index 2b2ad399..161e167c 100644
--- a/include/float.h
+++ b/include/float.h
@@ -11,8 +11,10 @@
#define FLT_MANT_DIG 24
#define FLT_MIN_EXP (-125)
#define FLT_MAX_EXP 128
+#define FLT_HAS_SUBNORM 1
#define FLT_DIG 6
+#define FLT_DECIMAL_DIG 9
#define FLT_MIN_10_EXP (-37)
#define FLT_MAX_10_EXP 38
@@ -24,11 +26,16 @@
#define DBL_MANT_DIG 53
#define DBL_MIN_EXP (-1021)
#define DBL_MAX_EXP 1024
+#define DBL_HAS_SUBNORM 1
#define DBL_DIG 15
+#define DBL_DECIMAL_DIG 17
#define DBL_MIN_10_EXP (-307)
#define DBL_MAX_10_EXP 308
+#define LDBL_HAS_SUBNORM 1
+#define LDBL_DECIMAL_DIG DECIMAL_DIG
+
#include <bits/float.h>
#endif