diff options
| author | Jakob Kaivo <jkk@ung.org> | 2019-02-09 20:34:25 -0500 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2019-02-09 20:34:25 -0500 |
| commit | 1e8468a416c9adc822e1eb413b15040d3a8aa6af (patch) | |
| tree | 85867b7aa8052e43cc52ae190df8c089cdf0a385 /src | |
| parent | 7761de857d64de49551914a52d15864d54762bbc (diff) | |
add missing LINK(m) and XOPEN(4[00]) information
Diffstat (limited to 'src')
| -rw-r--r-- | src/math/M_2_SQRTPI.c | 2 | ||||
| -rw-r--r-- | src/math/acosh.c | 1 | ||||
| -rw-r--r-- | src/math/asinh.c | 1 | ||||
| -rw-r--r-- | src/math/atanh.c | 1 | ||||
| -rw-r--r-- | src/math/cbrt.c | 1 | ||||
| -rw-r--r-- | src/math/erf.c | 1 | ||||
| -rw-r--r-- | src/math/erfc.c | 1 | ||||
| -rw-r--r-- | src/math/expm1.c | 3 | ||||
| -rw-r--r-- | src/math/gamma.c | 1 | ||||
| -rw-r--r-- | src/math/hypot.c | 1 | ||||
| -rw-r--r-- | src/math/ilogb.c | 1 | ||||
| -rw-r--r-- | src/math/isnan.c | 1 | ||||
| -rw-r--r-- | src/math/j0.c | 1 | ||||
| -rw-r--r-- | src/math/j1.c | 1 | ||||
| -rw-r--r-- | src/math/jn.c | 1 | ||||
| -rw-r--r-- | src/math/lgamma.c | 1 | ||||
| -rw-r--r-- | src/math/log1p.c | 1 | ||||
| -rw-r--r-- | src/math/logb.c | 1 | ||||
| -rw-r--r-- | src/math/nextafter.c | 1 | ||||
| -rw-r--r-- | src/math/remainder.c | 1 | ||||
| -rw-r--r-- | src/math/rint.c | 1 | ||||
| -rw-r--r-- | src/math/scalb.c | 10 | ||||
| -rw-r--r-- | src/math/signgam.c | 1 | ||||
| -rw-r--r-- | src/math/y0.c | 1 | ||||
| -rw-r--r-- | src/math/y1.c | 1 | ||||
| -rw-r--r-- | src/math/yn.c | 1 |
26 files changed, 36 insertions, 2 deletions
diff --git a/src/math/M_2_SQRTPI.c b/src/math/M_2_SQRTPI.c index b25a4974..f8d102b5 100644 --- a/src/math/M_2_SQRTPI.c +++ b/src/math/M_2_SQRTPI.c @@ -1,5 +1,5 @@ #include <math.h> -#define M_2_PI 2.0/sqrt(3.14159) +#define M_2_SQRTPI 2.0/sqrt(3.14159) /* XOPEN(4) */ diff --git a/src/math/acosh.c b/src/math/acosh.c index 3e64e9d1..12fe6b71 100644 --- a/src/math/acosh.c +++ b/src/math/acosh.c @@ -9,5 +9,6 @@ TYPE TGFN(acosh)(TYPE x) /* STDC(199901) +XOPEN(400) LINK(m) */ diff --git a/src/math/asinh.c b/src/math/asinh.c index e4086844..48aae9b0 100644 --- a/src/math/asinh.c +++ b/src/math/asinh.c @@ -9,5 +9,6 @@ TYPE TGFN(asinh)(TYPE x) /* STDC(199901) +XOPEN(400) LINK(m) */ diff --git a/src/math/atanh.c b/src/math/atanh.c index 2f5f62f1..5db3b26b 100644 --- a/src/math/atanh.c +++ b/src/math/atanh.c @@ -9,5 +9,6 @@ TYPE TGFN(atanh)(TYPE x) /* STDC(199901) +XOPEN(400) LINK(m) */ diff --git a/src/math/cbrt.c b/src/math/cbrt.c index 596cabd2..864a6117 100644 --- a/src/math/cbrt.c +++ b/src/math/cbrt.c @@ -9,5 +9,6 @@ TYPE TGFN(cbrt)(TYPE x) /* STDC(199901) +XOPEN(400) LINK(m) */ diff --git a/src/math/erf.c b/src/math/erf.c index 63525700..97dbc2b4 100644 --- a/src/math/erf.c +++ b/src/math/erf.c @@ -9,5 +9,6 @@ TYPE TGFN(erf)(TYPE x) /* STDC(199901) +XOPEN(4) LINK(m) */ diff --git a/src/math/erfc.c b/src/math/erfc.c index 3aef20d3..06b06b5a 100644 --- a/src/math/erfc.c +++ b/src/math/erfc.c @@ -9,5 +9,6 @@ TYPE TGFN(erfc)(TYPE x) /* STDC(199901) +XOPEN(4) LINK(m) */ diff --git a/src/math/expm1.c b/src/math/expm1.c index f50c43a4..4c3b1c45 100644 --- a/src/math/expm1.c +++ b/src/math/expm1.c @@ -2,12 +2,13 @@ #include "nonstd/tgmath.h" #include <math.h> -TYPE TGFN(exmp1)(TYPE x) +TYPE TGFN(expm1)(TYPE x) { return x; } /* STDC(199901) +XOPEN(400) LINK(m) */ diff --git a/src/math/gamma.c b/src/math/gamma.c index 326d5154..b43abfa6 100644 --- a/src/math/gamma.c +++ b/src/math/gamma.c @@ -7,4 +7,5 @@ double gamma(double x) /* XOPEN(4,600) +LINK(m) */ diff --git a/src/math/hypot.c b/src/math/hypot.c index 8a792143..25fbae0b 100644 --- a/src/math/hypot.c +++ b/src/math/hypot.c @@ -9,5 +9,6 @@ TYPE TGFN(hypot)(TYPE x, TYPE y) /* STDC(199901) +XOPEN(4) LINK(m) */ diff --git a/src/math/ilogb.c b/src/math/ilogb.c index ef9c0595..2f37fa7b 100644 --- a/src/math/ilogb.c +++ b/src/math/ilogb.c @@ -9,5 +9,6 @@ TYPE TGFN(ilogb)(TYPE x) /* STDC(199901) +XOPEN(400) LINK(m) */ diff --git a/src/math/isnan.c b/src/math/isnan.c index 2ae4b4d2..472bc4b8 100644 --- a/src/math/isnan.c +++ b/src/math/isnan.c @@ -9,4 +9,5 @@ /* STDC(199901) LINK(m) +see also SUSv1 */ diff --git a/src/math/j0.c b/src/math/j0.c index 89977340..37b8cd11 100644 --- a/src/math/j0.c +++ b/src/math/j0.c @@ -7,4 +7,5 @@ double j0(double x) /* XOPEN(4) +LINK(m) */ diff --git a/src/math/j1.c b/src/math/j1.c index a846c459..2e64089b 100644 --- a/src/math/j1.c +++ b/src/math/j1.c @@ -7,4 +7,5 @@ double j1(double x) /* XOPEN(4) +LINK(m) */ diff --git a/src/math/jn.c b/src/math/jn.c index dedd0dbb..b6bfb644 100644 --- a/src/math/jn.c +++ b/src/math/jn.c @@ -7,4 +7,5 @@ double jn(int n, double x) /* XOPEN(4) +LINK(m) */ diff --git a/src/math/lgamma.c b/src/math/lgamma.c index 381dc442..7336d946 100644 --- a/src/math/lgamma.c +++ b/src/math/lgamma.c @@ -9,5 +9,6 @@ TYPE TGFN(lgamma)(TYPE x) /* STDC(199901) +XOPEN(4) LINK(m) */ diff --git a/src/math/log1p.c b/src/math/log1p.c index 1ed70439..0afcb33f 100644 --- a/src/math/log1p.c +++ b/src/math/log1p.c @@ -9,5 +9,6 @@ TYPE TGFN(log1p)(TYPE x) /* STDC(199901) +XOPEN(400) LINK(m) */ diff --git a/src/math/logb.c b/src/math/logb.c index c14582df..49cdf274 100644 --- a/src/math/logb.c +++ b/src/math/logb.c @@ -9,5 +9,6 @@ TYPE TGFN(logb)(TYPE x) /* STDC(199901) +XOPEN(400) LINK(m) */ diff --git a/src/math/nextafter.c b/src/math/nextafter.c index 315b184c..fa059035 100644 --- a/src/math/nextafter.c +++ b/src/math/nextafter.c @@ -9,5 +9,6 @@ TYPE TGFN(nextafter)(TYPE x, TYPE y) /* STDC(199901) +XOPEN(400) LINK(m) */ diff --git a/src/math/remainder.c b/src/math/remainder.c index a50c7a81..c4c360ca 100644 --- a/src/math/remainder.c +++ b/src/math/remainder.c @@ -9,4 +9,5 @@ TYPE TGFN(remainder)(TYPE x, TYPE y) /* XOPEN(400) POSIX(200112) +LINK(m) */ diff --git a/src/math/rint.c b/src/math/rint.c index f6ba653f..920525d4 100644 --- a/src/math/rint.c +++ b/src/math/rint.c @@ -9,5 +9,6 @@ TYPE TGFN(rint)(TYPE x) /* STDC(199901) +XOPEN(400) LINK(m) */ diff --git a/src/math/scalb.c b/src/math/scalb.c new file mode 100644 index 00000000..ab49c533 --- /dev/null +++ b/src/math/scalb.c @@ -0,0 +1,10 @@ +#include <math.h> + +double scalb(double x, double n) +{ +} + +/* +XOPEN(400) +LINK(m) +*/ diff --git a/src/math/signgam.c b/src/math/signgam.c index dedc166d..9da63e1a 100644 --- a/src/math/signgam.c +++ b/src/math/signgam.c @@ -2,4 +2,5 @@ int signgam; /* XOPEN(4) +LINK(m) */ diff --git a/src/math/y0.c b/src/math/y0.c index d1286d5d..6e30f9a8 100644 --- a/src/math/y0.c +++ b/src/math/y0.c @@ -7,4 +7,5 @@ double y0(double x) /* XOPEN(4) +LINK(m) */ diff --git a/src/math/y1.c b/src/math/y1.c index b4c84a10..4323c8c8 100644 --- a/src/math/y1.c +++ b/src/math/y1.c @@ -7,4 +7,5 @@ double y1(double x) /* XOPEN(4) +LINK(m) */ diff --git a/src/math/yn.c b/src/math/yn.c index 4b6ac1a6..921dca38 100644 --- a/src/math/yn.c +++ b/src/math/yn.c @@ -7,4 +7,5 @@ double yn(int n, double x) /* XOPEN(4) +LINK(m) */ |
