From 700fbd205a1a428677876d322606b9a354221892 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Sun, 16 Aug 2020 15:47:08 -0400 Subject: add skeleton of things from C11 --- src/float/DBL_DECIMAL_DIG.c | 6 ++++++ src/float/DBL_HAS_SUBNORM.c | 8 ++++++++ src/float/FLT_DECIMAL_DIG.c | 6 ++++++ src/float/FLT_HAS_SUBNORM.c | 8 ++++++++ src/float/LDBL_DECIMAL_DIG.c | 6 ++++++ src/float/LDBL_HAS_SUBNORM.c | 8 ++++++++ 6 files changed, 42 insertions(+) create mode 100644 src/float/DBL_DECIMAL_DIG.c create mode 100644 src/float/DBL_HAS_SUBNORM.c create mode 100644 src/float/FLT_DECIMAL_DIG.c create mode 100644 src/float/FLT_HAS_SUBNORM.c create mode 100644 src/float/LDBL_DECIMAL_DIG.c create mode 100644 src/float/LDBL_HAS_SUBNORM.c (limited to 'src/float') 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) +*/ -- cgit v1.2.1