From 37c774887664247b5a639a4e21be6442167fd8bc Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Sat, 9 Feb 2019 13:22:34 -0500 Subject: merge XOPEN identifiers --- src/math/MAXFLOAT.c | 6 ++++++ src/math/M_1_PI.c | 5 +++++ src/math/M_2_PI.c | 5 +++++ src/math/M_2_SQRTPI.c | 5 +++++ src/math/M_E.c | 5 +++++ src/math/M_LN10.c | 5 +++++ src/math/M_LN2.c | 5 +++++ src/math/M_LOG10E.c | 5 +++++ src/math/M_LOG2E.c | 5 +++++ src/math/M_PI.c | 5 +++++ src/math/M_PI_2.c | 5 +++++ src/math/M_PI_4.c | 5 +++++ src/math/M_SQRT1_2.c | 5 +++++ src/math/M_SQRT2.c | 5 +++++ src/math/gamma.c | 10 ++++++++++ src/math/j0.c | 10 ++++++++++ src/math/j1.c | 10 ++++++++++ src/math/jn.c | 10 ++++++++++ src/math/remainder.c | 12 ++++++++++++ src/math/signgam.c | 5 +++++ src/math/y0.c | 10 ++++++++++ src/math/y1.c | 10 ++++++++++ src/math/yn.c | 10 ++++++++++ 23 files changed, 158 insertions(+) create mode 100644 src/math/MAXFLOAT.c create mode 100644 src/math/M_1_PI.c create mode 100644 src/math/M_2_PI.c create mode 100644 src/math/M_2_SQRTPI.c create mode 100644 src/math/M_E.c create mode 100644 src/math/M_LN10.c create mode 100644 src/math/M_LN2.c create mode 100644 src/math/M_LOG10E.c create mode 100644 src/math/M_LOG2E.c create mode 100644 src/math/M_PI.c create mode 100644 src/math/M_PI_2.c create mode 100644 src/math/M_PI_4.c create mode 100644 src/math/M_SQRT1_2.c create mode 100644 src/math/M_SQRT2.c create mode 100644 src/math/gamma.c create mode 100644 src/math/j0.c create mode 100644 src/math/j1.c create mode 100644 src/math/jn.c create mode 100644 src/math/remainder.c create mode 100644 src/math/signgam.c create mode 100644 src/math/y0.c create mode 100644 src/math/y1.c create mode 100644 src/math/yn.c diff --git a/src/math/MAXFLOAT.c b/src/math/MAXFLOAT.c new file mode 100644 index 00000000..a9ebd202 --- /dev/null +++ b/src/math/MAXFLOAT.c @@ -0,0 +1,6 @@ +#include +#define MAXFLOAT 1E+37 +/* Must be the same as FLT_MAX in */ +/* +XOPEN(4) +*/ diff --git a/src/math/M_1_PI.c b/src/math/M_1_PI.c new file mode 100644 index 00000000..b448e4be --- /dev/null +++ b/src/math/M_1_PI.c @@ -0,0 +1,5 @@ +#include +#define M_1_PI 1.0/3.14159 +/* +XOPEN(4) +*/ diff --git a/src/math/M_2_PI.c b/src/math/M_2_PI.c new file mode 100644 index 00000000..d807fce7 --- /dev/null +++ b/src/math/M_2_PI.c @@ -0,0 +1,5 @@ +#include +#define M_2_PI 2.0/3.14159 +/* +XOPEN(4) +*/ diff --git a/src/math/M_2_SQRTPI.c b/src/math/M_2_SQRTPI.c new file mode 100644 index 00000000..b25a4974 --- /dev/null +++ b/src/math/M_2_SQRTPI.c @@ -0,0 +1,5 @@ +#include +#define M_2_PI 2.0/sqrt(3.14159) +/* +XOPEN(4) +*/ diff --git a/src/math/M_E.c b/src/math/M_E.c new file mode 100644 index 00000000..844dec02 --- /dev/null +++ b/src/math/M_E.c @@ -0,0 +1,5 @@ +#include +#define M_E value of e +/* +XOPEN(4) +*/ diff --git a/src/math/M_LN10.c b/src/math/M_LN10.c new file mode 100644 index 00000000..89fc2d9b --- /dev/null +++ b/src/math/M_LN10.c @@ -0,0 +1,5 @@ +#include +#define M_LN10 // log_e 10 +/* +XOPEN(4) +*/ diff --git a/src/math/M_LN2.c b/src/math/M_LN2.c new file mode 100644 index 00000000..84a110f3 --- /dev/null +++ b/src/math/M_LN2.c @@ -0,0 +1,5 @@ +#include +#define M_LN2 // log_e 2 +/* +XOPEN(4) +*/ diff --git a/src/math/M_LOG10E.c b/src/math/M_LOG10E.c new file mode 100644 index 00000000..f6c7e2e0 --- /dev/null +++ b/src/math/M_LOG10E.c @@ -0,0 +1,5 @@ +#include +#define M_LOG10E // log_10 e +/* +XOPEN(4) +*/ diff --git a/src/math/M_LOG2E.c b/src/math/M_LOG2E.c new file mode 100644 index 00000000..827658e9 --- /dev/null +++ b/src/math/M_LOG2E.c @@ -0,0 +1,5 @@ +#include +#define M_LOG2E // log_2 e +/* +XOPEN(4) +*/ diff --git a/src/math/M_PI.c b/src/math/M_PI.c new file mode 100644 index 00000000..e917cf1a --- /dev/null +++ b/src/math/M_PI.c @@ -0,0 +1,5 @@ +#include +#define M_PI 3.14159 +/* +XOPEN(4) +*/ diff --git a/src/math/M_PI_2.c b/src/math/M_PI_2.c new file mode 100644 index 00000000..dad5f0b4 --- /dev/null +++ b/src/math/M_PI_2.c @@ -0,0 +1,5 @@ +#include +#define M_PI_2 3.14159/2.0 +/* +XOPEN(4) +*/ diff --git a/src/math/M_PI_4.c b/src/math/M_PI_4.c new file mode 100644 index 00000000..a20d16f1 --- /dev/null +++ b/src/math/M_PI_4.c @@ -0,0 +1,5 @@ +#include +#define M_PI_4 3.14159/4.0 +/* +XOPEN(4) +*/ diff --git a/src/math/M_SQRT1_2.c b/src/math/M_SQRT1_2.c new file mode 100644 index 00000000..6f4b61e3 --- /dev/null +++ b/src/math/M_SQRT1_2.c @@ -0,0 +1,5 @@ +#include +#define M_SQRT1_2 1.0/sqrt(2.0) +/* +XOPEN(4) +*/ diff --git a/src/math/M_SQRT2.c b/src/math/M_SQRT2.c new file mode 100644 index 00000000..96f3f19a --- /dev/null +++ b/src/math/M_SQRT2.c @@ -0,0 +1,5 @@ +#include +#define M_SQRT2 sqrt(2.0) +/* +XOPEN(4) +*/ diff --git a/src/math/gamma.c b/src/math/gamma.c new file mode 100644 index 00000000..326d5154 --- /dev/null +++ b/src/math/gamma.c @@ -0,0 +1,10 @@ +#include + +double gamma(double x) +{ + return x; +} + +/* +XOPEN(4,600) +*/ diff --git a/src/math/j0.c b/src/math/j0.c new file mode 100644 index 00000000..89977340 --- /dev/null +++ b/src/math/j0.c @@ -0,0 +1,10 @@ +#include + +double j0(double x) +{ + return x; +} + +/* +XOPEN(4) +*/ diff --git a/src/math/j1.c b/src/math/j1.c new file mode 100644 index 00000000..a846c459 --- /dev/null +++ b/src/math/j1.c @@ -0,0 +1,10 @@ +#include + +double j1(double x) +{ + return x; +} + +/* +XOPEN(4) +*/ diff --git a/src/math/jn.c b/src/math/jn.c new file mode 100644 index 00000000..dedd0dbb --- /dev/null +++ b/src/math/jn.c @@ -0,0 +1,10 @@ +#include + +double jn(int n, double x) +{ + return x; +} + +/* +XOPEN(4) +*/ diff --git a/src/math/remainder.c b/src/math/remainder.c new file mode 100644 index 00000000..a50c7a81 --- /dev/null +++ b/src/math/remainder.c @@ -0,0 +1,12 @@ +#include +#define TGSOURCE "remainder.c" +#include "_tgmath.h" + +TYPE TGFN(remainder)(TYPE x, TYPE y) +{ +} + +/* +XOPEN(400) +POSIX(200112) +*/ diff --git a/src/math/signgam.c b/src/math/signgam.c new file mode 100644 index 00000000..dedc166d --- /dev/null +++ b/src/math/signgam.c @@ -0,0 +1,5 @@ +#include +int signgam; +/* +XOPEN(4) +*/ diff --git a/src/math/y0.c b/src/math/y0.c new file mode 100644 index 00000000..d1286d5d --- /dev/null +++ b/src/math/y0.c @@ -0,0 +1,10 @@ +#include + +double y0(double x) +{ + return x; +} + +/* +XOPEN(4) +*/ diff --git a/src/math/y1.c b/src/math/y1.c new file mode 100644 index 00000000..b4c84a10 --- /dev/null +++ b/src/math/y1.c @@ -0,0 +1,10 @@ +#include + +double y1(double x) +{ + return x; +} + +/* +XOPEN(4) +*/ diff --git a/src/math/yn.c b/src/math/yn.c new file mode 100644 index 00000000..4b6ac1a6 --- /dev/null +++ b/src/math/yn.c @@ -0,0 +1,10 @@ +#include + +double yn(int n, double x) +{ + return x; +} + +/* +XOPEN(4) +*/ -- cgit v1.2.1