summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-02-09 13:22:34 -0500
committerJakob Kaivo <jkk@ung.org>2019-02-09 13:22:34 -0500
commit37c774887664247b5a639a4e21be6442167fd8bc (patch)
tree638423baa0312acf26404d10287c63076ad35216
parentb495c832828a72c90298cbb70099299a9172c7d1 (diff)
merge XOPEN identifiers
-rw-r--r--src/math/MAXFLOAT.c6
-rw-r--r--src/math/M_1_PI.c5
-rw-r--r--src/math/M_2_PI.c5
-rw-r--r--src/math/M_2_SQRTPI.c5
-rw-r--r--src/math/M_E.c5
-rw-r--r--src/math/M_LN10.c5
-rw-r--r--src/math/M_LN2.c5
-rw-r--r--src/math/M_LOG10E.c5
-rw-r--r--src/math/M_LOG2E.c5
-rw-r--r--src/math/M_PI.c5
-rw-r--r--src/math/M_PI_2.c5
-rw-r--r--src/math/M_PI_4.c5
-rw-r--r--src/math/M_SQRT1_2.c5
-rw-r--r--src/math/M_SQRT2.c5
-rw-r--r--src/math/gamma.c10
-rw-r--r--src/math/j0.c10
-rw-r--r--src/math/j1.c10
-rw-r--r--src/math/jn.c10
-rw-r--r--src/math/remainder.c12
-rw-r--r--src/math/signgam.c5
-rw-r--r--src/math/y0.c10
-rw-r--r--src/math/y1.c10
-rw-r--r--src/math/yn.c10
23 files changed, 158 insertions, 0 deletions
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 <math.h>
+#define MAXFLOAT 1E+37
+/* Must be the same as FLT_MAX in <float.h> */
+/*
+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 <math.h>
+#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 <math.h>
+#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 <math.h>
+#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 <math.h>
+#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 <math.h>
+#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 <math.h>
+#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 <math.h>
+#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 <math.h>
+#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 <math.h>
+#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 <math.h>
+#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 <math.h>
+#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 <math.h>
+#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 <math.h>
+#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 <math.h>
+
+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 <math.h>
+
+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 <math.h>
+
+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 <math.h>
+
+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 <math.h>
+#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 <math.h>
+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 <math.h>
+
+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 <math.h>
+
+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 <math.h>
+
+double yn(int n, double x)
+{
+ return x;
+}
+
+/*
+XOPEN(4)
+*/