diff options
author | 2008-12-09 20:00:35 +0000 | |
---|---|---|
committer | 2008-12-09 20:00:35 +0000 | |
commit | 390c8400525fc0ecc9e2c49c2246076b1b49fe19 (patch) | |
tree | 53eacecd5d140dfe4af32e85cbd374f340c935fc /lib/libm/noieee_src/n_asincos.c | |
parent | - add long double signbit (diff) | |
download | wireguard-openbsd-390c8400525fc0ecc9e2c49c2246076b1b49fe19.tar.xz wireguard-openbsd-390c8400525fc0ecc9e2c49c2246076b1b49fe19.zip |
- 80-bit and quad precision trigonometric and other most
important functions: acosl, asinl, atanl, atan2l, cosl,
sinl, tanl, exp2l, frexpl, ilogbl, ldexpl, logbl, scalbnl,
fabsl, hypotl, powl, sqrtl, rintl, copysignl, nanl, fdiml,
fmaxl, fminl. mostly taken from freebsd, needed alot of
changes to adapt. note, these are all c versions; and are
quite slow when architectures have, e.g. sqrt. assembly
versions will be added afterwards
- make them .weak/__weak_alias to the double precision
versions on other archs
- no need to have two finites. finite() and finitef() are
non-standard 3BSD obsolete versions of isfinite. remove
from libm. make them weak_alias in libc to __isfinite and
__isfinitef instead. similarly make 3BSD obsolete versions
of isinf, isinff, isnan, isnanf weak_aliases to C99's
__isinf, __isinff, __isnan, __isnanf
- remove unused infinity.c. the c library has infinities
for each supported platform
- use STRICT_ASSIGN cast hack for _kernel_rem_pio2, so that
the double version has a chance of working on i386 with
extra precision
- avoid storing multiple copies of the pi/2 array, since
it won't vary
- bump major due to removed finite/finitef. although they
will be in libc, which anything is linked to, minor bump
might be enough
ok millert@. tested by sthen@, jsg@, ajacoutot@, kili@, naddy@
Diffstat (limited to 'lib/libm/noieee_src/n_asincos.c')
-rw-r--r-- | lib/libm/noieee_src/n_asincos.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/lib/libm/noieee_src/n_asincos.c b/lib/libm/noieee_src/n_asincos.c index 40cc86bcabb..6b720021291 100644 --- a/lib/libm/noieee_src/n_asincos.c +++ b/lib/libm/noieee_src/n_asincos.c @@ -1,4 +1,4 @@ -/* $OpenBSD: n_asincos.c,v 1.7 2008/06/21 08:26:19 martynas Exp $ */ +/* $OpenBSD: n_asincos.c,v 1.8 2008/12/09 20:00:35 martynas Exp $ */ /* $NetBSD: n_asincos.c,v 1.1 1995/10/10 23:36:34 ragge Exp $ */ /* * Copyright (c) 1985, 1993 @@ -85,7 +85,9 @@ static char sccsid[] = "@(#)asincos.c 8.1 (Berkeley) 6/4/93"; * 1.99 ulps. */ -#include "math.h" +#include <machine/cdefs.h> +#include <math.h> + #include "mathimpl.h" double @@ -104,6 +106,10 @@ asin(double x) } +#ifdef __weak_alias +__weak_alias(asinl, asin); +#endif /* __weak_alias */ + /* ACOS(X) * RETURNS ARC COS OF X * DOUBLE PRECISION (IEEE DOUBLE 53 bits, VAX D FORMAT 56 bits) @@ -170,3 +176,7 @@ acos(double x) t=atan2(one,0.0); /* t = PI/2 */ return(t+t); } + +#ifdef __weak_alias +__weak_alias(acosl, acos); +#endif /* __weak_alias */ |