diff options
author | 2011-07-08 19:25:31 +0000 | |
---|---|---|
committer | 2011-07-08 19:25:31 +0000 | |
commit | de3697aa9479c3be5ff81d594e19ca819a9fb9ec (patch) | |
tree | 836d295c7bed312c6f332a7545bcc8399e6cc16e /lib/libm/src/s_clog.c | |
parent | COMPAT_43 does not do all it used to. COMPAT_AOUT is wholly useless. (diff) | |
download | wireguard-openbsd-de3697aa9479c3be5ff81d594e19ca819a9fb9ec.tar.xz wireguard-openbsd-de3697aa9479c3be5ff81d594e19ca819a9fb9ec.zip |
Finalize work on complex math routines, now that we have the
extended-precision support. Mostly from Cephes.
Diffstat (limited to 'lib/libm/src/s_clog.c')
-rw-r--r-- | lib/libm/src/s_clog.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/lib/libm/src/s_clog.c b/lib/libm/src/s_clog.c index 31163700607..ce806269bfb 100644 --- a/lib/libm/src/s_clog.c +++ b/lib/libm/src/s_clog.c @@ -1,4 +1,4 @@ -/* $OpenBSD: s_clog.c,v 1.1 2008/09/07 20:36:09 martynas Exp $ */ +/* $OpenBSD: s_clog.c,v 1.2 2011/07/08 19:25:31 martynas Exp $ */ /* * Copyright (c) 2008 Stephen L. Moshier <steve@moshier.net> * @@ -15,6 +15,8 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +/* LINTLIBRARY */ + /* clog.c * * Complex natural logarithm @@ -54,7 +56,9 @@ * absolute error 1.0e-16. */ +#include <sys/cdefs.h> #include <complex.h> +#include <float.h> #include <math.h> double complex @@ -70,3 +74,12 @@ clog(double complex z) w = p + rr * I; return (w); } + +#if LDBL_MANT_DIG == 53 +#ifdef lint +/* PROTOLIB1 */ +long double complex clogl(long double complex); +#else /* lint */ +__weak_alias(clogl, clog); +#endif /* lint */ +#endif /* LDBL_MANT_DIG == 53 */ |