summaryrefslogtreecommitdiff
path: root/src/float
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2020-08-16 15:47:08 -0400
committerJakob Kaivo <jkk@ung.org>2020-08-16 15:47:08 -0400
commit700fbd205a1a428677876d322606b9a354221892 (patch)
treec1a521f3a2ea0346f293a543a9ed4ef6c1242b77 /src/float
parentd36c832edee04db91e0c0ab635980c63844ca07c (diff)
add skeleton of things from C11
Diffstat (limited to 'src/float')
-rw-r--r--src/float/DBL_DECIMAL_DIG.c6
-rw-r--r--src/float/DBL_HAS_SUBNORM.c8
-rw-r--r--src/float/FLT_DECIMAL_DIG.c6
-rw-r--r--src/float/FLT_HAS_SUBNORM.c8
-rw-r--r--src/float/LDBL_DECIMAL_DIG.c6
-rw-r--r--src/float/LDBL_HAS_SUBNORM.c8
6 files changed, 42 insertions, 0 deletions
diff --git a/src/float/DBL_DECIMAL_DIG.c b/src/float/DBL_DECIMAL_DIG.c
new file mode 100644
index 00000000..16c68495
--- /dev/null
+++ b/src/float/DBL_DECIMAL_DIG.c
@@ -0,0 +1,6 @@
+#define DBL_DECIMAL_DIG (10)
+
+/*
+MIN(10)
+STDC(201112)
+*/
diff --git a/src/float/DBL_HAS_SUBNORM.c b/src/float/DBL_HAS_SUBNORM.c
new file mode 100644
index 00000000..be060884
--- /dev/null
+++ b/src/float/DBL_HAS_SUBNORM.c
@@ -0,0 +1,8 @@
+#define DBL_HAS_SUBNORM (-1)
+
+/* -1: indeterminable */
+/* 0: subnormal numbers not supported */
+/* 1: subnormal numbers are supported */
+/*
+STDC(201112)
+*/
diff --git a/src/float/FLT_DECIMAL_DIG.c b/src/float/FLT_DECIMAL_DIG.c
new file mode 100644
index 00000000..2bf60c7c
--- /dev/null
+++ b/src/float/FLT_DECIMAL_DIG.c
@@ -0,0 +1,6 @@
+#define FLT_DECIMAL_DIG (6)
+
+/* MIN: 6 */
+/*
+STDC(201112)
+*/
diff --git a/src/float/FLT_HAS_SUBNORM.c b/src/float/FLT_HAS_SUBNORM.c
new file mode 100644
index 00000000..e68672e1
--- /dev/null
+++ b/src/float/FLT_HAS_SUBNORM.c
@@ -0,0 +1,8 @@
+#define FLT_HAS_SUBNORM (-1)
+
+/* -1: indeterminable */
+/* 0: subnormal numbers not supported */
+/* 1: subnormal numbers are supported */
+/*
+STDC(201112)
+*/
diff --git a/src/float/LDBL_DECIMAL_DIG.c b/src/float/LDBL_DECIMAL_DIG.c
new file mode 100644
index 00000000..cc58e752
--- /dev/null
+++ b/src/float/LDBL_DECIMAL_DIG.c
@@ -0,0 +1,6 @@
+#define LDBL_DECIMAL_DIG (10)
+
+/* MIN: 10 */
+/*
+STDC(201112)
+*/
diff --git a/src/float/LDBL_HAS_SUBNORM.c b/src/float/LDBL_HAS_SUBNORM.c
new file mode 100644
index 00000000..c9384981
--- /dev/null
+++ b/src/float/LDBL_HAS_SUBNORM.c
@@ -0,0 +1,8 @@
+#define LDBL_HAS_SUBNORM (-1)
+
+/* -1: indeterminable */
+/* 0: subnormal numbers not supported */
+/* 1: subnormal numbers are supported */
+/*
+STDC(201112)
+*/