From b0b27a0ff417e8deadca7e0d71a7365eef14a6ad Mon Sep 17 00:00:00 2001 From: "Viral B. Shah" Date: Thu, 15 Dec 2011 11:54:24 +0530 Subject: [PATCH] Replace math.h with openlibm.h Remove man --- bsdsrc/b_log.c | 2 +- bsdsrc/b_tgamma.c | 2 +- bsdsrc/mathimpl.h | 2 +- ld128/e_rem_pio2l.h | 2 +- ld128/k_tanl.c | 2 +- ld128/s_exp2l.c | 2 +- ld128/s_nanl.c | 2 +- ld80/e_rem_pio2l.h | 2 +- ld80/k_tanl.c | 2 +- ld80/s_exp2l.c | 2 +- ld80/s_nanl.c | 2 +- man/acos.3 | 87 -------- man/acosh.3 | 78 ------- man/asin.3 | 89 -------- man/asinh.3 | 74 ------- man/atan.3 | 81 ------- man/atan2.3 | 225 ------------------- man/atanh.3 | 81 ------- man/ccos.3 | 80 ------- man/ccosh.3 | 80 ------- man/ceil.3 | 78 ------- man/cexp.3 | 113 ---------- man/cimag.3 | 121 ---------- man/complex.3 | 130 ----------- man/copysign.3 | 86 ------- man/cos.3 | 83 ------- man/cosh.3 | 69 ------ man/csqrt.3 | 102 --------- man/erf.3 | 93 -------- man/exp.3 | 177 --------------- man/fabs.3 | 83 ------- man/fdim.3 | 86 ------- man/feclearexcept.3 | 139 ------------ man/feenableexcept.3 | 98 -------- man/fegetenv.3 | 113 ---------- man/fegetround.3 | 83 ------- man/fenv.3 | 293 ------------------------ man/floor.3 | 78 ------- man/fma.3 | 116 ---------- man/fmax.3 | 97 -------- man/fmod.3 | 87 -------- man/hypot.3 | 145 ------------ man/ieee.3 | 444 ------------------------------------- man/ieee_test.3 | 89 -------- man/ilogb.3 | 124 ----------- man/j0.3 | 169 -------------- man/lgamma.3 | 189 ---------------- man/log.3 | 118 ---------- man/lrint.3 | 104 --------- man/lround.3 | 112 ---------- man/math.3 | 254 --------------------- man/nan.3 | 99 --------- man/nextafter.3 | 96 -------- man/remainder.3 | 159 ------------- man/rint.3 | 103 --------- man/round.3 | 80 ------- man/scalbn.3 | 91 -------- man/signbit.3 | 57 ----- man/sin.3 | 82 ------- man/sinh.3 | 68 ------ man/sqrt.3 | 122 ---------- man/tan.3 | 83 ------- man/tanh.3 | 77 ------- man/trunc.3 | 80 ------- src/e_acos.c | 2 +- src/e_acosf.c | 2 +- src/e_acosh.c | 2 +- src/e_acoshf.c | 2 +- src/e_acosl.c | 2 +- src/e_asin.c | 2 +- src/e_asinf.c | 2 +- src/e_asinl.c | 2 +- src/e_atan2.c | 2 +- src/e_atan2f.c | 2 +- src/e_atan2l.c | 2 +- src/e_atanh.c | 2 +- src/e_atanhf.c | 2 +- src/e_cosh.c | 2 +- src/e_coshf.c | 2 +- src/e_exp.c | 2 +- src/e_expf.c | 2 +- src/e_fmod.c | 2 +- src/e_fmodf.c | 2 +- src/e_fmodl.c | 4 +- src/e_gamma.c | 2 +- src/e_gamma_r.c | 2 +- src/e_gammaf.c | 2 +- src/e_gammaf_r.c | 2 +- src/e_hypot.c | 2 +- src/e_hypotf.c | 2 +- src/e_hypotl.c | 4 +- src/e_j0.c | 2 +- src/e_j0f.c | 2 +- src/e_j1.c | 2 +- src/e_j1f.c | 2 +- src/e_jn.c | 2 +- src/e_jnf.c | 2 +- src/e_lgamma.c | 2 +- src/e_lgamma_r.c | 2 +- src/e_lgammaf.c | 2 +- src/e_lgammaf_r.c | 2 +- src/e_log.c | 2 +- src/e_log10.c | 2 +- src/e_log10f.c | 2 +- src/e_log2.c | 2 +- src/e_log2f.c | 2 +- src/e_logf.c | 2 +- src/e_pow.c | 2 +- src/e_powf.c | 2 +- src/e_rem_pio2.c | 2 +- src/e_rem_pio2f.c | 2 +- src/e_remainder.c | 2 +- src/e_remainderf.c | 2 +- src/e_remainderl.c | 2 +- src/e_scalb.c | 2 +- src/e_scalbf.c | 2 +- src/e_sinh.c | 2 +- src/e_sinhf.c | 2 +- src/e_sqrt.c | 2 +- src/e_sqrtf.c | 2 +- src/e_sqrtl.c | 4 +- src/k_cos.c | 2 +- src/k_cosf.c | 2 +- src/k_exp.c | 2 +- src/k_expf.c | 2 +- src/k_rem_pio2.c | 2 +- src/k_sin.c | 2 +- src/k_sinf.c | 2 +- src/k_tan.c | 2 +- src/k_tanf.c | 2 +- src/{math.h => openlibm.h} | 4 +- src/s_asinh.c | 2 +- src/s_asinhf.c | 2 +- src/s_atan.c | 2 +- src/s_atanf.c | 2 +- src/s_atanl.c | 2 +- src/s_carg.c | 2 +- src/s_cargf.c | 2 +- src/s_cargl.c | 2 +- src/s_cbrt.c | 2 +- src/s_cbrtf.c | 2 +- src/s_cbrtl.c | 4 +- src/s_ccosh.c | 2 +- src/s_ccoshf.c | 2 +- src/s_ceil.c | 2 +- src/s_ceilf.c | 2 +- src/s_ceill.c | 4 +- src/s_cexp.c | 2 +- src/s_cexpf.c | 2 +- src/s_copysign.c | 2 +- src/s_copysignf.c | 2 +- src/s_copysignl.c | 4 +- src/s_cos.c | 2 +- src/s_cosf.c | 2 +- src/s_cosl.c | 2 +- src/s_cproj.c | 2 +- src/s_cprojf.c | 2 +- src/s_cprojl.c | 2 +- src/s_csinh.c | 2 +- src/s_csinhf.c | 2 +- src/s_csqrt.c | 2 +- src/s_csqrtf.c | 2 +- src/s_csqrtl.c | 2 +- src/s_ctanh.c | 2 +- src/s_ctanhf.c | 2 +- src/s_erf.c | 2 +- src/s_erff.c | 2 +- src/s_exp2.c | 2 +- src/s_exp2f.c | 2 +- src/s_expm1.c | 2 +- src/s_expm1f.c | 2 +- src/s_fabs.c | 2 +- src/s_fabsf.c | 2 +- src/s_fabsl.c | 4 +- src/s_fdim.c | 2 +- src/s_finite.c | 2 +- src/s_finitef.c | 2 +- src/s_floor.c | 2 +- src/s_floorf.c | 2 +- src/s_floorl.c | 4 +- src/s_fma.c | 2 +- src/s_fmaf.c | 2 +- src/s_fmal.c | 4 +- src/s_fmax.c | 4 +- src/s_fmaxf.c | 4 +- src/s_fmaxl.c | 4 +- src/s_fmin.c | 4 +- src/s_fminf.c | 4 +- src/s_fminl.c | 4 +- src/s_frexp.c | 2 +- src/s_frexpf.c | 2 +- src/s_frexpl.c | 4 +- src/s_ilogb.c | 2 +- src/s_ilogbf.c | 2 +- src/s_ilogbl.c | 4 +- src/s_isfinite.c | 4 +- src/s_isnan.c | 4 +- src/s_isnormal.c | 4 +- src/s_log1p.c | 2 +- src/s_log1pf.c | 2 +- src/s_logb.c | 2 +- src/s_logbf.c | 2 +- src/s_logbl.c | 4 +- src/s_lrint.c | 2 +- src/s_lround.c | 2 +- src/s_modf.c | 2 +- src/s_modff.c | 2 +- src/s_modfl.c | 4 +- src/s_nan.c | 2 +- src/s_nearbyint.c | 2 +- src/s_nextafter.c | 2 +- src/s_nextafterf.c | 2 +- src/s_nextafterl.c | 4 +- src/s_nexttoward.c | 4 +- src/s_nexttowardf.c | 4 +- src/s_remquo.c | 2 +- src/s_remquof.c | 2 +- src/s_remquol.c | 4 +- src/s_rint.c | 2 +- src/s_rintf.c | 2 +- src/s_rintl.c | 4 +- src/s_round.c | 2 +- src/s_roundf.c | 2 +- src/s_roundl.c | 2 +- src/s_scalbln.c | 2 +- src/s_scalbn.c | 2 +- src/s_scalbnf.c | 2 +- src/s_scalbnl.c | 4 +- src/s_signbit.c | 4 +- src/s_signgam.c | 2 +- src/s_significand.c | 2 +- src/s_significandf.c | 2 +- src/s_sin.c | 2 +- src/s_sinf.c | 2 +- src/s_sinl.c | 2 +- src/s_tan.c | 2 +- src/s_tanf.c | 2 +- src/s_tanh.c | 2 +- src/s_tanhf.c | 2 +- src/s_tanl.c | 2 +- src/s_tgammaf.c | 2 +- src/s_trunc.c | 2 +- src/s_truncf.c | 2 +- src/s_truncl.c | 4 +- src/w_cabs.c | 2 +- src/w_cabsf.c | 2 +- src/w_cabsl.c | 2 +- src/w_drem.c | 2 +- src/w_dremf.c | 2 +- 249 files changed, 227 insertions(+), 6372 deletions(-) delete mode 100644 man/acos.3 delete mode 100644 man/acosh.3 delete mode 100644 man/asin.3 delete mode 100644 man/asinh.3 delete mode 100644 man/atan.3 delete mode 100644 man/atan2.3 delete mode 100644 man/atanh.3 delete mode 100644 man/ccos.3 delete mode 100644 man/ccosh.3 delete mode 100644 man/ceil.3 delete mode 100644 man/cexp.3 delete mode 100644 man/cimag.3 delete mode 100644 man/complex.3 delete mode 100644 man/copysign.3 delete mode 100644 man/cos.3 delete mode 100644 man/cosh.3 delete mode 100644 man/csqrt.3 delete mode 100644 man/erf.3 delete mode 100644 man/exp.3 delete mode 100644 man/fabs.3 delete mode 100644 man/fdim.3 delete mode 100644 man/feclearexcept.3 delete mode 100644 man/feenableexcept.3 delete mode 100644 man/fegetenv.3 delete mode 100644 man/fegetround.3 delete mode 100644 man/fenv.3 delete mode 100644 man/floor.3 delete mode 100644 man/fma.3 delete mode 100644 man/fmax.3 delete mode 100644 man/fmod.3 delete mode 100644 man/hypot.3 delete mode 100644 man/ieee.3 delete mode 100644 man/ieee_test.3 delete mode 100644 man/ilogb.3 delete mode 100644 man/j0.3 delete mode 100644 man/lgamma.3 delete mode 100644 man/log.3 delete mode 100644 man/lrint.3 delete mode 100644 man/lround.3 delete mode 100644 man/math.3 delete mode 100644 man/nan.3 delete mode 100644 man/nextafter.3 delete mode 100644 man/remainder.3 delete mode 100644 man/rint.3 delete mode 100644 man/round.3 delete mode 100644 man/scalbn.3 delete mode 100644 man/signbit.3 delete mode 100644 man/sin.3 delete mode 100644 man/sinh.3 delete mode 100644 man/sqrt.3 delete mode 100644 man/tan.3 delete mode 100644 man/tanh.3 delete mode 100644 man/trunc.3 rename src/{math.h => openlibm.h} (98%) diff --git a/bsdsrc/b_log.c b/bsdsrc/b_log.c index b3e1393..c2d9ce5 100644 --- a/bsdsrc/b_log.c +++ b/bsdsrc/b_log.c @@ -35,7 +35,7 @@ #include //__FBSDID("$FreeBSD: src/lib/msun/bsdsrc/b_log.c,v 1.9 2008/02/22 02:26:51 das Exp $"); -#include +#include #include #include "mathimpl.h" diff --git a/bsdsrc/b_tgamma.c b/bsdsrc/b_tgamma.c index 358075b..8ce5d9a 100644 --- a/bsdsrc/b_tgamma.c +++ b/bsdsrc/b_tgamma.c @@ -42,7 +42,7 @@ * acknowledged. */ -#include +#include #include "mathimpl.h" /* METHOD: diff --git a/bsdsrc/mathimpl.h b/bsdsrc/mathimpl.h index 2a3b246..df29637 100644 --- a/bsdsrc/mathimpl.h +++ b/bsdsrc/mathimpl.h @@ -38,7 +38,7 @@ #define _MATHIMPL_H_ #include -#include +#include #include "../src/math_private.h" diff --git a/ld128/e_rem_pio2l.h b/ld128/e_rem_pio2l.h index df952a2..89b8821 100644 --- a/ld128/e_rem_pio2l.h +++ b/ld128/e_rem_pio2l.h @@ -24,7 +24,7 @@ #include -#include "math.h" +#include "openlibm.h" #include "math_private.h" #include "fpmath.h" diff --git a/ld128/k_tanl.c b/ld128/k_tanl.c index aa0f09b..4e5c6db 100644 --- a/ld128/k_tanl.c +++ b/ld128/k_tanl.c @@ -18,7 +18,7 @@ * ld128 version of k_tan.c. See ../src/k_tan.c for most comments. */ -#include "math.h" +#include "openlibm.h" #include "math_private.h" /* diff --git a/ld128/s_exp2l.c b/ld128/s_exp2l.c index 5ff5495..4b09c71 100644 --- a/ld128/s_exp2l.c +++ b/ld128/s_exp2l.c @@ -31,7 +31,7 @@ #include #include "fpmath.h" -#include "math.h" +#include "openlibm.h" #define TBLBITS 7 #define TBLSIZE (1 << TBLBITS) diff --git a/ld128/s_nanl.c b/ld128/s_nanl.c index 48b5681..58f0a2a 100644 --- a/ld128/s_nanl.c +++ b/ld128/s_nanl.c @@ -26,7 +26,7 @@ * $FreeBSD: src/lib/msun/ld128/s_nanl.c,v 1.3 2008/03/02 20:16:55 das Exp $ */ -#include +#include "openlibm.h" #include "fpmath.h" #include "../src/math_private.h" diff --git a/ld80/e_rem_pio2l.h b/ld80/e_rem_pio2l.h index 6091d72..8406a80 100644 --- a/ld80/e_rem_pio2l.h +++ b/ld80/e_rem_pio2l.h @@ -24,7 +24,7 @@ #include -#include "math.h" +#include "openlibm.h" #include "math_private.h" #include "fpmath.h" diff --git a/ld80/k_tanl.c b/ld80/k_tanl.c index e4a53f6..d9e1c73 100644 --- a/ld80/k_tanl.c +++ b/ld80/k_tanl.c @@ -18,7 +18,7 @@ * ld80 version of k_tan.c. See ../src/k_tan.c for most comments. */ -#include "math.h" +#include "openlibm.h" #include "math_private.h" /* diff --git a/ld80/s_exp2l.c b/ld80/s_exp2l.c index b985d8b..939e20c 100644 --- a/ld80/s_exp2l.c +++ b/ld80/s_exp2l.c @@ -35,7 +35,7 @@ #endif #include "fpmath.h" -#include "math.h" +#include "openlibm.h" #define TBLBITS 7 #define TBLSIZE (1 << TBLBITS) diff --git a/ld80/s_nanl.c b/ld80/s_nanl.c index 0fa7672..7b8b1fc 100644 --- a/ld80/s_nanl.c +++ b/ld80/s_nanl.c @@ -26,7 +26,7 @@ * $FreeBSD: src/lib/msun/ld80/s_nanl.c,v 1.2 2007/12/18 23:46:31 das Exp $ */ -#include +#include "openlibm.h" #include "fpmath.h" #include "../src/math_private.h" diff --git a/man/acos.3 b/man/acos.3 deleted file mode 100644 index 8533773..0000000 --- a/man/acos.3 +++ /dev/null @@ -1,87 +0,0 @@ -.\" Copyright (c) 1991 The Regents of the University of California. -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" from: @(#)acos.3 5.1 (Berkeley) 5/2/91 -.\" $FreeBSD: src/lib/msun/man/acos.3,v 1.15 2008/07/31 22:41:26 das Exp $ -.\" -.Dd July 31, 2008 -.Dt ACOS 3 -.Os -.Sh NAME -.Nm acos , -.Nm acosf , -.Nm acosl -.Nd arc cosine functions -.Sh LIBRARY -.Lb libm -.Sh SYNOPSIS -.In math.h -.Ft double -.Fn acos "double x" -.Ft float -.Fn acosf "float x" -.Ft long double -.Fn acosl "long double x" -.Sh DESCRIPTION -The -.Fn acos , -.Fn acosf , -and -.Fn acosl -functions compute the principal value of the arc cosine of -.Fa x . -.Sh RETURN VALUES -These functions return the arc cosine in the range -.Bq 0 , \*(Pi -radians. -If: -.Bd -unfilled -offset indent -.Pf \&| Ns Ar x Ns \&| > 1 , -.Ed -.Pp -.Fn acos x -raises an invalid exception and returns an \*(Na. -.Sh SEE ALSO -.Xr asin 3 , -.Xr atan 3 , -.Xr atan2 3 , -.Xr cos 3 , -.Xr cosh 3 , -.Xr fenv 3 , -.Xr math 3 , -.Xr sin 3 , -.Xr sinh 3 , -.Xr tan 3 , -.Xr tanh 3 -.Sh STANDARDS -The -.Fn acos , -.Fn acosf , -and -.Fn acosl -functions conform to -.St -isoC-99 . diff --git a/man/acosh.3 b/man/acosh.3 deleted file mode 100644 index 9a77eba..0000000 --- a/man/acosh.3 +++ /dev/null @@ -1,78 +0,0 @@ -.\" Copyright (c) 1991 Regents of the University of California. -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" from: @(#)acosh.3 5.2 (Berkeley) 5/6/91 -.\" $FreeBSD: src/lib/msun/man/acosh.3,v 1.12 2007/01/09 01:02:05 imp Exp $ -.\" -.Dd January 14, 2005 -.Dt ACOSH 3 -.Os -.Sh NAME -.Nm acosh , -.Nm acoshf -.Nd inverse hyperbolic cosine functions -.Sh LIBRARY -.Lb libm -.Sh SYNOPSIS -.In math.h -.Ft double -.Fn acosh "double x" -.Ft float -.Fn acoshf "float x" -.Sh DESCRIPTION -The -.Fn acosh -and the -.Fn acoshf -functions compute the inverse hyperbolic cosine -of the real -argument -.Ar x . -For a discussion of error due to roundoff, see -.Xr math 3 . -.Sh RETURN VALUES -The -.Fn acosh -and the -.Fn acoshf -functions -return the inverse hyperbolic cosine of -.Ar x . -If the argument is less than 1, -.Fn acosh -raises an invalid exception and returns an \*(Na. -.Sh SEE ALSO -.Xr asinh 3 , -.Xr atanh 3 , -.Xr exp 3 , -.Xr fenv 3 , -.Xr math 3 -.Sh HISTORY -The -.Fn acosh -function appeared in -.Bx 4.3 . diff --git a/man/asin.3 b/man/asin.3 deleted file mode 100644 index 6518097..0000000 --- a/man/asin.3 +++ /dev/null @@ -1,89 +0,0 @@ -.\" Copyright (c) 1991 The Regents of the University of California. -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" from: @(#)asin.3 5.1 (Berkeley) 5/2/91 -.\" $FreeBSD: src/lib/msun/man/asin.3,v 1.17 2008/07/31 22:41:26 das Exp $ -.\" -.Dd July 31, 2008 -.Dt ASIN 3 -.Os -.Sh NAME -.Nm asin , -.Nm asinf , -.Nm asinl -.Nd arc sine functions -.Sh LIBRARY -.Lb libm -.Sh SYNOPSIS -.In math.h -.Ft double -.Fn asin "double x" -.Ft float -.Fn asinf "float x" -.Ft long double -.Fn asinl "long double x" -.Sh DESCRIPTION -The -.Fn asin , -.Fn asinf , -and -.Fn asinl -functions compute the principal value of the arc sine of -.Fa x . -.Sh RETURN VALUES -These functions return the arc sine in the range -.Bk -words -.Bq -\*(Pi/2 , +\*(Pi/2 -.Ek -radians. -If: -.Bd -unfilled -offset indent -.Pf \&| Ns Ar x Ns \&| > 1 -.Ed -.Pp -.Fn asin x -raises an invalid exception and returns an \*(Na. -.Sh SEE ALSO -.Xr acos 3 , -.Xr atan 3 , -.Xr atan2 3 , -.Xr cos 3 , -.Xr cosh 3 , -.Xr fenv 3 , -.Xr math 3 , -.Xr sin 3 , -.Xr sinh 3 , -.Xr tan 3 , -.Xr tanh 3 -.Sh STANDARDS -The -.Fn asin , -.Fn asinf , -and -.Fn asinl -functions conform to -.St -isoC-99 . diff --git a/man/asinh.3 b/man/asinh.3 deleted file mode 100644 index 463a468..0000000 --- a/man/asinh.3 +++ /dev/null @@ -1,74 +0,0 @@ -.\" Copyright (c) 1985, 1991 Regents of the University of California. -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" from: @(#)asinh.3 6.4 (Berkeley) 5/6/91 -.\" $FreeBSD: src/lib/msun/man/asinh.3,v 1.11 2007/01/09 01:02:05 imp Exp $ -.\" -.Dd May 6, 1991 -.Dt ASINH 3 -.Os -.Sh NAME -.Nm asinh , -.Nm asinhf -.Nd inverse hyperbolic sine functions -.Sh LIBRARY -.Lb libm -.Sh SYNOPSIS -.In math.h -.Ft double -.Fn asinh "double x" -.Ft float -.Fn asinhf "float x" -.Sh DESCRIPTION -The -.Fn asinh -and the -.Fn asinhf -functions compute the inverse hyperbolic sine -of the real -argument -.Ar x . -For a discussion of error due to roundoff, see -.Xr math 3 . -.Sh RETURN VALUES -The -.Fn asinh -and the -.Fn asinhf -functions -return the inverse hyperbolic sine of -.Ar x . -.Sh SEE ALSO -.Xr acosh 3 , -.Xr atanh 3 , -.Xr exp 3 , -.Xr math 3 -.Sh HISTORY -The -.Fn asinh -function appeared in -.Bx 4.3 . diff --git a/man/atan.3 b/man/atan.3 deleted file mode 100644 index 33e3b9a..0000000 --- a/man/atan.3 +++ /dev/null @@ -1,81 +0,0 @@ -.\" Copyright (c) 1991 The Regents of the University of California. -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" from: @(#)atan.3 5.1 (Berkeley) 5/2/91 -.\" $FreeBSD: src/lib/msun/man/atan.3,v 1.12 2008/07/31 22:41:26 das Exp $ -.\" -.Dd July 31, 2008 -.Dt ATAN 3 -.Os -.Sh NAME -.Nm atan , -.Nm atanf , -.Nm atanl -.Nd arc tangent functions of one variable -.Sh LIBRARY -.Lb libm -.Sh SYNOPSIS -.In math.h -.Ft double -.Fn atan "double x" -.Ft float -.Fn atanf "float x" -.Ft long double -.Fn atanl "long double x" -.Sh DESCRIPTION -The -.Fn atan , -.Fn atanf , -and -.Fn atanl -functions compute the principal value of the arc tangent of -.Fa x . -.Sh RETURN VALUES -These functions return the arc tangent in the range -.Bk -words -.Bq -\*(Pi/2 , +\*(Pi/2 -.Ek -radians. -.Sh SEE ALSO -.Xr acos 3 , -.Xr asin 3 , -.Xr atan2 3 , -.Xr cos 3 , -.Xr cosh 3 , -.Xr math 3 , -.Xr sin 3 , -.Xr sinh 3 , -.Xr tan 3 , -.Xr tanh 3 -.Sh STANDARDS -The -.Fn atan , -.Fn atanf , -and -.Fn atanl -functions conform to -.St -isoC-99 . diff --git a/man/atan2.3 b/man/atan2.3 deleted file mode 100644 index 4f9c32e..0000000 --- a/man/atan2.3 +++ /dev/null @@ -1,225 +0,0 @@ -.\" Copyright (c) 1991 The Regents of the University of California. -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" from: @(#)atan2.3 5.1 (Berkeley) 5/2/91 -.\" $FreeBSD: src/lib/msun/man/atan2.3,v 1.20 2010/06/09 07:31:32 uqs Exp $ -.\" -.Dd July 31, 2008 -.Dt ATAN2 3 -.Os -.Sh NAME -.Nm atan2 , -.Nm atan2f , -.Nm atan2l , -.Nm carg , -.Nm cargf , -.Nm cargl -.Nd arc tangent and complex phase angle functions -.Sh LIBRARY -.Lb libm -.Sh SYNOPSIS -.In math.h -.Ft double -.Fn atan2 "double y" "double x" -.Ft float -.Fn atan2f "float y" "float x" -.Ft long double -.Fn atan2l "long double y" "long double x" -.In complex.h -.Ft double -.Fn carg "double complex z" -.Ft float -.Fn cargf "float complex z" -.Ft long double -.Fn cargl "long double complex z" -.Sh DESCRIPTION -The -.Fn atan2 , -.Fn atan2f , -and -.Fn atan2l -functions compute the principal value of the arc tangent of -.Fa y/ Ns Ar x , -using the signs of both arguments to determine the quadrant of -the return value. -.Pp -The -.Fn carg , -.Fn cargf , -and -.Fn cargl -functions compute the complex argument (or phase angle) of -.Fa z . -The complex argument is the number theta such that -.Li z = r * e^(I * theta) , -where -.Li r = cabs(z) . -The call -.Li carg(z) -is equivalent to -.Li atan2(cimag(z), creal(z)) , -and similarly for -.Fn cargf -and -.Fn cargl . -.Sh RETURN VALUES -The -.Fn atan2 , -.Fn atan2f , -and -.Fn atan2l -functions, if successful, -return the arc tangent of -.Fa y/ Ns Ar x -in the range -.Bk -words -.Bq \&- Ns \*(Pi , \&+ Ns \*(Pi -.Ek -radians. -Here are some of the special cases: -.Bl -column atan_(y,x)_:=____ sign(y)_(Pi_atan2(Xy_xX))___ -.It Fn atan2 y x No := Ta -.Fn atan y/x Ta -if -.Ar x -> 0, -.It Ta sign( Ns Ar y Ns )*(\*(Pi - -.Fn atan "\*(Bay/x\*(Ba" ) Ta -if -.Ar x -< 0, -.It Ta -.No 0 Ta -if x = y = 0, or -.It Ta -.Pf sign( Ar y Ns )*\*(Pi/2 Ta -if -.Ar x -= 0 \(!= -.Ar y . -.El -.Sh NOTES -The function -.Fn atan2 -defines "if x > 0," -.Fn atan2 0 0 -= 0 despite that previously -.Fn atan2 0 0 -may have generated an error message. -The reasons for assigning a value to -.Fn atan2 0 0 -are these: -.Bl -enum -offset indent -.It -Programs that test arguments to avoid computing -.Fn atan2 0 0 -must be indifferent to its value. -Programs that require it to be invalid are vulnerable -to diverse reactions to that invalidity on diverse computer systems. -.It -The -.Fn atan2 -function is used mostly to convert from rectangular (x,y) -to polar -.if n\ -(r,theta) -.if t\ -(r,\(*h) -coordinates that must satisfy x = -.if n\ -r\(**cos theta -.if t\ -r\(**cos\(*h -and y = -.if n\ -r\(**sin theta. -.if t\ -r\(**sin\(*h. -These equations are satisfied when (x=0,y=0) -is mapped to -.if n \ -(r=0,theta=0). -.if t \ -(r=0,\(*h=0). -In general, conversions to polar coordinates -should be computed thus: -.Bd -unfilled -offset indent -.if n \{\ -r := hypot(x,y); ... := sqrt(x\(**x+y\(**y) -theta := atan2(y,x). -.\} -.if t \{\ -r := hypot(x,y); ... := \(sr(x\u\s82\s10\d+y\u\s82\s10\d) -\(*h := atan2(y,x). -.\} -.Ed -.It -The foregoing formulas need not be altered to cope in a -reasonable way with signed zeros and infinities -on a machine that conforms to -.Tn IEEE 754 ; -the versions of -.Xr hypot 3 -and -.Fn atan2 -provided for -such a machine are designed to handle all cases. -That is why -.Fn atan2 \(+-0 \-0 -= \(+-\*(Pi -for instance. -In general the formulas above are equivalent to these: -.Bd -unfilled -offset indent -.if n \ -r := sqrt(x\(**x+y\(**y); if r = 0 then x := copysign(1,x); -.if t \ -r := \(sr(x\(**x+y\(**y);\0\0if r = 0 then x := copysign(1,x); -.Ed -.El -.Sh SEE ALSO -.Xr acos 3 , -.Xr asin 3 , -.Xr atan 3 , -.Xr cabs 3 , -.Xr cos 3 , -.Xr cosh 3 , -.Xr math 3 , -.Xr sin 3 , -.Xr sinh 3 , -.Xr tan 3 , -.Xr tanh 3 -.Sh STANDARDS -The -.Fn atan2 , -.Fn atan2f , -.Fn atan2l , -.Fn carg , -.Fn cargf , -and -.Fn cargl -functions conform to -.St -isoC-99 . diff --git a/man/atanh.3 b/man/atanh.3 deleted file mode 100644 index d739407..0000000 --- a/man/atanh.3 +++ /dev/null @@ -1,81 +0,0 @@ -.\" Copyright (c) 1985, 1991 Regents of the University of California. -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" from: @(#)atanh.3 5.2 (Berkeley) 5/6/91 -.\" $FreeBSD: src/lib/msun/man/atanh.3,v 1.14 2007/01/09 01:02:05 imp Exp $ -.\" -.Dd January 14, 2005 -.Dt ATANH 3 -.Os -.Sh NAME -.Nm atanh , -.Nm atanhf -.Nd inverse hyperbolic tangent functions -.Sh LIBRARY -.Lb libm -.Sh SYNOPSIS -.In math.h -.Ft double -.Fn atanh "double x" -.Ft float -.Fn atanhf "float x" -.Sh DESCRIPTION -The -.Fn atanh -and the -.Fn atanhf -functions compute the inverse hyperbolic tangent -of the real -argument -.Ar x . -For a discussion of error due to roundoff, see -.Xr math 3 . -.Sh RETURN VALUES -The -.Fn atanh -and the -.Fn atanhf -functions -return the inverse hyperbolic tangent of -.Ar x -if successful. -If the argument has absolute value 1, a divide-by-zero exception -is raised and an infinity is returned. -If -.Ar |x| -> 1, an invalid exception is raised and an \*(Na is returned. -.Sh SEE ALSO -.Xr acosh 3 , -.Xr asinh 3 , -.Xr exp 3 , -.Xr fenv 3 , -.Xr math 3 -.Sh HISTORY -The -.Fn atanh -function appeared in -.Bx 4.3 . diff --git a/man/ccos.3 b/man/ccos.3 deleted file mode 100644 index 016e429..0000000 --- a/man/ccos.3 +++ /dev/null @@ -1,80 +0,0 @@ -.\" Copyright (c) 2011 David Schultz -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" $FreeBSD: src/lib/msun/man/ccos.3,v 1.1 2011/10/17 05:41:03 das Exp $ -.\" -.Dd October 17, 2011 -.Dt CCOS 3 -.Os -.Sh NAME -.Nm ccos , -.Nm ccosf , -.Nm csin , -.Nm csinf -.Nm ctan , -.Nm ctanf -.Nd complex trigonometric functions -.Sh LIBRARY -.Lb libm -.Sh SYNOPSIS -.In complex.h -.Ft double complex -.Fn ccos "double complex z" -.Ft float complex -.Fn ccosf "float complex z" -.Ft double complex -.Fn csin "double complex z" -.Ft float complex -.Fn csinf "float complex z" -.Ft double complex -.Fn ctan "double complex z" -.Ft float complex -.Fn ctanf "float complex z" -.Sh DESCRIPTION -The -.Fn ccos , -.Fn csin , -and -.Fn ctan -functions compute the cosine, sine, and tangent of the complex number -.Fa z , -respectively. -The -.Fn ccosf , -.Fn csinf , -and -.Fn ctanf -functions perform the same operations in -.Fa float -precision. -.Sh SEE ALSO -.Xr ccosh 3 , -.Xr complex 3 , -.Xr cos 3 , -.Xr math 3 , -.Xr sin 3 , -.Xr tan 3 -.Sh STANDARDS -These functions conform to -.St -isoC-99 . diff --git a/man/ccosh.3 b/man/ccosh.3 deleted file mode 100644 index 3582650..0000000 --- a/man/ccosh.3 +++ /dev/null @@ -1,80 +0,0 @@ -.\" Copyright (c) 2011 David Schultz -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" $FreeBSD: src/lib/msun/man/ccosh.3,v 1.1 2011/10/17 05:41:03 das Exp $ -.\" -.Dd October 17, 2011 -.Dt CCOSH 3 -.Os -.Sh NAME -.Nm ccosh , -.Nm ccoshf , -.Nm csinh , -.Nm csinhf -.Nm ctanh , -.Nm ctanhf -.Nd complex hyperbolic functions -.Sh LIBRARY -.Lb libm -.Sh SYNOPSIS -.In complex.h -.Ft double complex -.Fn ccosh "double complex z" -.Ft float complex -.Fn ccoshf "float complex z" -.Ft double complex -.Fn csinh "double complex z" -.Ft float complex -.Fn csinhf "float complex z" -.Ft double complex -.Fn ctanh "double complex z" -.Ft float complex -.Fn ctanhf "float complex z" -.Sh DESCRIPTION -The -.Fn ccosh , -.Fn csinh , -and -.Fn ctanh -functions compute the hyperbolic cosine, sine, and tangent of the complex number -.Fa z , -respectively. -The -.Fn ccoshf , -.Fn csinhf , -and -.Fn ctanhf -functions perform the same operations in -.Fa float -precision. -.Sh SEE ALSO -.Xr ccos 3 , -.Xr complex 3 , -.Xr cosh 3 , -.Xr math 3 , -.Xr sinh 3 , -.Xr tanh 3 -.Sh STANDARDS -These functions conform to -.St -isoC-99 . diff --git a/man/ceil.3 b/man/ceil.3 deleted file mode 100644 index 49134f1..0000000 --- a/man/ceil.3 +++ /dev/null @@ -1,78 +0,0 @@ -.\" Copyright (c) 1991 The Regents of the University of California. -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" from: @(#)ceil.3 5.1 (Berkeley) 5/2/91 -.\" $FreeBSD: src/lib/msun/man/ceil.3,v 1.16 2007/01/09 01:02:05 imp Exp $ -.\" -.Dd January 13, 2005 -.Dt CEIL 3 -.Os -.Sh NAME -.Nm ceil , -.Nm ceilf , -.Nm ceill -.Nd smallest integral value greater than or equal to x -.Sh LIBRARY -.Lb libm -.Sh SYNOPSIS -.In math.h -.Ft double -.Fn ceil "double x" -.Ft float -.Fn ceilf "float x" -.Ft "long double" -.Fn ceill "long double x" -.Sh DESCRIPTION -The -.Fn ceil , -.Fn ceilf -and -.Fn ceill -functions return the smallest integral value -greater than or equal to -.Fa x , -expressed as a floating-point number. -.Sh SEE ALSO -.Xr abs 3 , -.Xr fabs 3 , -.Xr floor 3 , -.Xr ieee 3 , -.Xr math 3 , -.Xr rint 3 , -.Xr round 3 , -.Xr trunc 3 -.Sh STANDARDS -The -.Fn ceil -function conforms to -.St -isoC . -The -.Fn ceilf -and -.Fn ceill -functions conform to -.St -isoC-99 . diff --git a/man/cexp.3 b/man/cexp.3 deleted file mode 100644 index e652814..0000000 --- a/man/cexp.3 +++ /dev/null @@ -1,113 +0,0 @@ -.\" Copyright (c) 2011 David Schultz -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" $FreeBSD: src/lib/msun/man/cexp.3,v 1.1 2011/03/07 03:09:24 das Exp $ -.\" -.Dd March 6, 2011 -.Dt CEXP 3 -.Os -.Sh NAME -.Nm cexp , -.Nm cexpf -.Nd complex exponential functions -.Sh LIBRARY -.Lb libm -.Sh SYNOPSIS -.In complex.h -.Ft double complex -.Fn cexp "double complex z" -.Ft float complex -.Fn cexpf "float complex z" -.Sh DESCRIPTION -The -.Fn cexp -and -.Fn cexpf -functions compute the complex exponential of -.Fa z , -also known as -.Em cis Ns ( Ns -.Fa z Ns ) -.Sh RETURN VALUES -For real numbers -.Fa x -and -.Fa y , -.Fn cexp -behaves according to Euler's formula: -.Bd -ragged -offset indent -.Fn cexp "x + I*y" -= -.Ns ( Sy e Ns ** Ns -.Fa x * -.Em cos Ns ( Ns -.Fa y Ns )) + ( Ns -.Sy I -* -.Sy e Ns ** Ns -.Fa x -* -.Em sin Ns ( Ns -.Fa y Ns )) -.Ed -.Pp -Generally speaking, infinities, zeroes and \*(Nas are handled as would -be expected from this identity given the usual rules of floating-point -arithmetic. -However, care is taken to avoid generating \*(Nas when they are not deserved. -For example, mathematically we expect that -.Fo cimag -.Fn cexp "x + I*0" Fc -= 0 regardless of the value of -.Fa x , -and -.Fn cexp -preserves this identity even if -.Fa x -is \*(If or \*(Na. -Likewise, -.Fn cexp "-\*(If + I*y" -= 0 and -.Fo creal -.Fn cexp "\*(If + I*y" Fc -= \*(If -for any -.Fa y -(even though the latter property is only mathematically true for -representable -.Fa y . ) -If -.Fa y -is not finite, the sign of the result is indeterminate. -.Sh SEE ALSO -.Xr complex 3 , -.Xr exp 3 , -.Xr math 3 , -.Sh STANDARDS -The -.Fn cexp -and -.Fn cexpf -functions conform to -.St -isoC-99 . diff --git a/man/cimag.3 b/man/cimag.3 deleted file mode 100644 index daab9dd..0000000 --- a/man/cimag.3 +++ /dev/null @@ -1,121 +0,0 @@ -.\" Copyright (c) 2004 Stefan Farfeleder -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" $FreeBSD: src/lib/msun/man/cimag.3,v 1.4 2010/03/12 10:01:06 uqs Exp $ -.\" -.Dd August 7, 2008 -.Dt CIMAG 3 -.Os -.Sh NAME -.Nm cimag , cimagf , cimagl , -.Nm conj , conjf , conjl , -.Nm cproj , cprojf , cprojl , -.Nm creal , crealf , creall -.Nd "functions to manipulate complex numbers" -.Sh LIBRARY -.Lb libm -.Sh SYNOPSIS -.In complex.h -.Ft double -.Fn cimag "double complex z" -.Ft float -.Fn cimagf "float complex z" -.Ft "long double" -.Fn cimagl "long double complex z" -.Ft "double complex" -.Fn conj "double complex z" -.Ft "float complex" -.Fn conjf "float complex z" -.Ft "long double complex" -.Fn conjl "long double complex z" -.Ft "double complex" -.Fn cproj "double complex z" -.Ft "float complex" -.Fn cprojf "float complex z" -.Ft "long double complex" -.Fn cprojl "long double complex z" -.Ft double -.Fn creal "double complex z" -.Ft float -.Fn crealf "float complex z" -.Ft "long double" -.Fn creall "long double complex z" -.Sh DESCRIPTION -Let -.Sm off -.Fa a + b * Em i -.Sm on -denote the complex number -.Fa z . -.Pp -The -.Fn creal -functions return the real part -.Fa a , -and the -.Fn cimag -functions return the imaginary part -.Fa b . -.Pp -The -.Fn conj -functions return the complex conjugate -.Sm off -.Fa a - b * Em i . -.Sm on -.Pp -The -.Fn cproj -functions return the projection onto the Riemann sphere. -If -.Fa z -contains an infinite component, then the result is -.Fa \*(If \*(Pm 0 Ns * Ns Em i , -where the (zero) imaginary part of the result has the same sign as -.Fa b . -Otherwise, the result is -.Fa z . -.Pp -These functions do not signal any floating point exceptions. -.Sh STANDARDS -The -.Fn cimag , -.Fn conj , -.Fn cproj , -and -.Fn creal -functions conform to -.St -isoC-99 . -.Sh HISTORY -The -.Fn cimag , -.Fn conj -and -.Fn creal -functions first appeared in -.Fx 5.3 . -The -.Fn cproj -functions appeared in -.Fx 8.0 . diff --git a/man/complex.3 b/man/complex.3 deleted file mode 100644 index 0c946c3..0000000 --- a/man/complex.3 +++ /dev/null @@ -1,130 +0,0 @@ -.\" Copyright (c) 2011 Murray Stokely -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" $FreeBSD: src/lib/msun/man/complex.3,v 1.3 2011/10/17 05:41:03 das Exp $ -.\" -.Dd October 17, 2011 -.Dt COMPLEX 3 -.Os -.Sh NAME -.Nm complex -.Nd "complex arithmetic" -.Sh LIBRARY -.Lb libm -.Sh SYNOPSIS -.In complex.h -.Sh DESCRIPTION -These functions support complex arithmetic in the C math library. -.Sh "LIST OF FUNCTIONS" -Each of the following -.Vt "double complex" -functions has a -.Vt "float complex" -counterpart with an -.Ql f -appended to the name and a -.Vt "long double complex" -counterpart with an -.Ql l -appended. -As an example, the -.Vt "float complex" -and -.Vt "long double complex" -counterparts of -.Ft double -.Fn cabs "double complex z" -are -.Ft float -.Fn cabsf "float complex z" -and -.Ft "long double" -.Fn cabsl "long double complex z" , -respectively. -.de Cl -.Bl -column "csqrt" "complex absolute value (i.e. norm, modulus, magnitude)" -.Em "Name Description" -.. -.\" Section 7.3.5 - 7.3.7 of ISO C99 standard unimplemented, see BUGS -.\" Section 7.3.8 of ISO C99 standard -.Ss Absolute-value Functions -.Cl -cabs complex absolute value (i.e. norm, modulus, magnitude) -csqrt complex square root -.El -.Ss Exponential Function -.Cl -cexp exponential base e -.El -.\" Section 7.3.9 of ISO C99 standard -.Ss Manipulation Functions -.Cl -carg compute the argument (i.e. phase angle) -cimag compute the imaginary part -conj compute the complex conjugate -cproj compute projection onto Riemann sphere -creal compute the real part -.El -.\" Section 7.3.5-6 of ISO C99 standard -.Ss Trigonometric and Hyperbolic Functions -.Cl -ccos cosine -ccosh hyperbolic cosine -csin sine -csinh hyperbolic sine -ctan tangent -ctanh hyperbolic tangent -.El -.Sh SEE ALSO -.Xr math 3 , -.Xr fenv 3 , -.Xr ieee 3 , -.Xr tgmath 3 -.Rs -.%T "ISO/IEC 9899:TC3" -.%U http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1256.pdf -.Re -.Sh STANDARDS -The -.In complex.h -functions described here conform to -.St -isoC-99 . -.Sh BUGS -The inverse trigonmetric and hyperbolic functions -.Fn cacos , -.Fn cacosh , -.Fn casin , -.Fn casinh , -.Fn catan , -and -.Fn catanh -are not implemented. -.Pp -The logarithmic functions -.Fn clog -are not implemented. -.Pp -The power functions -.Fn cpow -are not implemented. diff --git a/man/copysign.3 b/man/copysign.3 deleted file mode 100644 index 17c72de..0000000 --- a/man/copysign.3 +++ /dev/null @@ -1,86 +0,0 @@ -.\" Copyright (c) 1985, 1991 Regents of the University of California. -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" from: @(#)ieee.3 6.4 (Berkeley) 5/6/91 -.\" $FreeBSD: src/lib/msun/man/copysign.3,v 1.2 2007/01/09 01:02:05 imp Exp $ -.\" -.Dd January 26, 2005 -.Dt COPYSIGN 3 -.Os -.Sh NAME -.Nm copysign , -.Nm copysignf , -.Nm copysignl -.Nd copy sign -.Sh LIBRARY -.Lb libm -.Sh SYNOPSIS -.In math.h -.Ft double -.Fn copysign "double x" "double y" -.Ft float -.Fn copysignf "float x" "float y" -.Ft long double -.Fn copysignl "long double x" "long double y" -.Sh DESCRIPTION -The -.Fn copysign , -.Fn copysignf -and -.Fn copysignl -functions -return -.Fa x -with its sign changed to -.Fa y Ns 's . -.Sh SEE ALSO -.Xr fabs 3 , -.Xr fdim 3 , -.Xr ieee 3 , -.Xr math 3 -.Sh STANDARDS -The -.Fn copysign , -.Fn copysignf , -and -.Fn copysignl -routines conform to -.St -isoC-99 . -They implement the Copysign function recommended by -.St -ieee754 . -.Sh HISTORY -The -.Fn copysign , -.Fn copysignf , -and -.Fn copysignl -functions appeared in -.Bx 4.3 , -.Fx 2.0 , -and -.Fx 5.3 , -respectively. diff --git a/man/cos.3 b/man/cos.3 deleted file mode 100644 index 742bb09..0000000 --- a/man/cos.3 +++ /dev/null @@ -1,83 +0,0 @@ -.\" Copyright (c) 1991 The Regents of the University of California. -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" from: @(#)cos.3 5.1 (Berkeley) 5/2/91 -.\" $FreeBSD: src/lib/msun/man/cos.3,v 1.15 2011/10/17 05:41:03 das Exp $ -.\" -.Dd January 24, 2008 -.Dt COS 3 -.Os -.Sh NAME -.Nm cos , -.Nm cosf , -.Nm cosl -.Nd cosine functions -.Sh LIBRARY -.Lb libm -.Sh SYNOPSIS -.In math.h -.Ft double -.Fn cos "double x" -.Ft float -.Fn cosf "float x" -.Ft long double -.Fn cosl "long double x" -.Sh DESCRIPTION -The -.Fn cos , -.Fn cosf , -and -.Fn cosl -functions compute the cosine of -.Fa x -(measured in radians). -A large magnitude argument may yield a result with little or no -significance. -For a discussion of error due to roundoff, see -.Xr math 3 . -.Sh RETURN VALUES -The -.Fn cos , -.Fn cosf , -and -.Fn cosl -functions return the cosine value. -.Sh SEE ALSO -.Xr acos 3 , -.Xr asin 3 , -.Xr atan 3 , -.Xr atan2 3 , -.Xr ccos 3 , -.Xr cosh 3 , -.Xr math 3 , -.Xr sin 3 , -.Xr sinh 3 , -.Xr tan 3 , -.Xr tanh 3 -.Sh STANDARDS -These functions conform to -.St -isoC-99 . diff --git a/man/cosh.3 b/man/cosh.3 deleted file mode 100644 index 98b94a1..0000000 --- a/man/cosh.3 +++ /dev/null @@ -1,69 +0,0 @@ -.\" Copyright (c) 1989, 1991 The Regents of the University of California. -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" from: @(#)cosh.3 5.1 (Berkeley) 5/2/91 -.\" $FreeBSD: src/lib/msun/man/cosh.3,v 1.14 2011/10/17 05:41:03 das Exp $ -.\" -.Dd January 14, 2005 -.Dt COSH 3 -.Os -.Sh NAME -.Nm cosh , -.Nm coshf -.Nd hyperbolic cosine functions -.Sh LIBRARY -.Lb libm -.Sh SYNOPSIS -.In math.h -.Ft double -.Fn cosh "double x" -.Ft float -.Fn coshf "float x" -.Sh DESCRIPTION -The -.Fn cosh -and the -.Fn coshf -functions compute the hyperbolic cosine of -.Fa x . -.Sh SEE ALSO -.Xr acos 3 , -.Xr asin 3 , -.Xr atan 3 , -.Xr atan2 3 , -.Xr ccosh 3 , -.Xr cos 3 , -.Xr math 3 , -.Xr sin 3 , -.Xr sinh 3 , -.Xr tan 3 , -.Xr tanh 3 -.Sh STANDARDS -The -.Fn cosh -function conforms to -.St -isoC . diff --git a/man/csqrt.3 b/man/csqrt.3 deleted file mode 100644 index 1775191..0000000 --- a/man/csqrt.3 +++ /dev/null @@ -1,102 +0,0 @@ -.\" Copyright (c) 2007-2008 David Schultz -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" $FreeBSD: src/lib/msun/man/csqrt.3,v 1.2 2008/03/30 20:07:15 das Exp $ -.\" -.Dd March 30, 2008 -.Dt CSQRT 3 -.Os -.Sh NAME -.Nm csqrt , -.Nm csqrtf , -.Nm csqrtl -.Nd complex square root functions -.Sh LIBRARY -.Lb libm -.Sh SYNOPSIS -.In complex.h -.Ft double complex -.Fn csqrt "double complex z" -.Ft float complex -.Fn csqrtf "float complex z" -.Ft long double complex -.Fn csqrtl "long double complex z" -.Sh DESCRIPTION -The -.Fn csqrt , -.Fn csqrtf , -and -.Fn csqrtl -functions compute the square root of -.Fa z -in the complex plane, with a branch cut along the negative real axis. -In other words, -.Fn csqrt , -.Fn csqrtf , -and -.Fn csqrtl -always return the square root whose real part is non-negative. -.Sh RETURN VALUES -These functions return the requested square root. -The square root of 0 is -.Li +0 \*(Pm 0 , -where the imaginary parts of the input and respective result have -the same sign. -For infinities and \*(Nas, the following rules apply, with the -earlier rules having precedence: -.Bl -column -offset indent "-\*(If + \*(Na*I" "\*(If \*(Pm \*(If*I " "(for all k)" -.Em Input Result -k + \*(If*I \*(If + \*(If*I (for all k) --\*(If + \*(Na*I \*(Na \*(Pm \*(If*I -\*(If + \*(Na*I \*(If + \*(Na*I -k + \*(Na*I \*(Na + \*(Na*I -\*(Na + k*I \*(Na + \*(Na*I --\*(If + k*I +0 + \*(If*I -\*(If + k*I \*(If + 0*I -.El -.Pp -For numbers with negative imaginary parts, the above special cases -apply given the identity: -.Dl csqrt(conj(z) = conj(sqrt(z)) -Note that the sign of \*(Na is indeterminate. -Also, if the real or imaginary part of the input is finite and -an \*(Na is generated, an invalid exception will be thrown. -.Sh SEE ALSO -.Xr cabs 3 , -.Xr fenv 3 , -.Xr math 3 , -.Sh STANDARDS -The -.Fn csqrt , -.Fn csqrtf , -and -.Fn csqrtl -functions conform to -.St -isoC-99 . -.Sh BUGS -For -.Fn csqrt -and -.Fn csqrtl , -inexact results are not always correctly rounded. diff --git a/man/erf.3 b/man/erf.3 deleted file mode 100644 index 1b38e5f..0000000 --- a/man/erf.3 +++ /dev/null @@ -1,93 +0,0 @@ -.\" Copyright (c) 1985, 1991 Regents of the University of California. -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" from: @(#)erf.3 6.4 (Berkeley) 4/20/91 -.\" $FreeBSD: src/lib/msun/man/erf.3,v 1.12 2007/01/09 01:02:05 imp Exp $ -.\" -.Dd April 20, 1991 -.Dt ERF 3 -.Os -.Sh NAME -.Nm erf , -.Nm erff , -.Nm erfc , -.Nm erfcf -.Nd error function operators -.Sh LIBRARY -.Lb libm -.Sh SYNOPSIS -.In math.h -.Ft double -.Fn erf "double x" -.Ft float -.Fn erff "float x" -.Ft double -.Fn erfc "double x" -.Ft float -.Fn erfcf "float x" -.Sh DESCRIPTION -These functions calculate the error function of -.Fa x . -.Pp -The -.Fn erf -and the -.Fn erff -functions calculate the error function of x; where -.Bd -ragged -offset indent -.if n \{\ -erf(x) = 2/sqrt(pi)\(**\|integral from 0 to x of exp(\-t\(**t) dt. -\} -.if t \{\ -erf\|(x) := -(2/\(sr\(*p)\|\(is\d\s8\z0\s10\u\u\s8x\s10\d\|exp(\-t\u\s82\s10\d)\|dt. -\} -.Ed -.Pp -The -.Fn erfc -and the -.Fn erfcf -functions calculate the complementary error function of -.Fa x ; -that is -.Fn erfc -subtracts the result of the error function -.Fn erf x -from 1.0. -This is useful, since for large -.Fa x -places disappear. -.Sh SEE ALSO -.Xr math 3 -.Sh HISTORY -The -.Fn erf -and -.Fn erfc -functions appeared in -.Bx 4.3 . diff --git a/man/exp.3 b/man/exp.3 deleted file mode 100644 index 3a8b9d9..0000000 --- a/man/exp.3 +++ /dev/null @@ -1,177 +0,0 @@ -.\" Copyright (c) 1985, 1991 Regents of the University of California. -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" from: @(#)exp.3 6.12 (Berkeley) 7/31/91 -.\" $FreeBSD: src/lib/msun/man/exp.3,v 1.24 2008/01/18 21:43:00 das Exp $ -.\" -.Dd January 17, 2008 -.Dt EXP 3 -.Os -.Sh NAME -.Nm exp , -.Nm expf , -.\" The sorting error is intentional. exp and expf should be adjacent. -.Nm exp2 , -.Nm exp2f , -.Nm exp2l , -.Nm expm1 , -.Nm expm1f , -.Nm pow , -.Nm powf -.Nd exponential and power functions -.Sh LIBRARY -.Lb libm -.Sh SYNOPSIS -.In math.h -.Ft double -.Fn exp "double x" -.Ft float -.Fn expf "float x" -.Ft double -.Fn exp2 "double x" -.Ft float -.Fn exp2f "float x" -.Ft long double -.Fn exp2l "long double x" -.Ft double -.Fn expm1 "double x" -.Ft float -.Fn expm1f "float x" -.Ft double -.Fn pow "double x" "double y" -.Ft float -.Fn powf "float x" "float y" -.Sh DESCRIPTION -The -.Fn exp -and the -.Fn expf -functions compute the base -.Ms e -exponential value of the given argument -.Fa x . -.Pp -The -.Fn exp2 , -.Fn exp2f , -and -.Fn exp2l -functions compute the base 2 exponential of the given argument -.Fa x . -.Pp -The -.Fn expm1 -and the -.Fn expm1f -functions compute the value exp(x)\-1 accurately even for tiny argument -.Fa x . -.Pp -The -.Fn pow -and the -.Fn powf -functions compute the value -of -.Ar x -to the exponent -.Ar y . -.Sh ERROR (due to Roundoff etc.) -The values of -.Fn exp 0 , -.Fn expm1 0 , -.Fn exp2 integer , -and -.Fn pow integer integer -are exact provided that they are representable. -.\" XXX Is this really true for pow()? -Otherwise the error in these functions is generally below one -.Em ulp . -.Sh RETURN VALUES -These functions will return the appropriate computation unless an error -occurs or an argument is out of range. -The functions -.Fn pow x y -and -.Fn powf x y -raise an invalid exception and return an \*(Na if -.Fa x -< 0 and -.Fa y -is not an integer. -.Sh NOTES -The function -.Fn pow x 0 -returns x**0 = 1 for all x including x = 0, \*(If, and \*(Na . -Previous implementations of pow may -have defined x**0 to be undefined in some or all of these -cases. -Here are reasons for returning x**0 = 1 always: -.Bl -enum -width indent -.It -Any program that already tests whether x is zero (or -infinite or \*(Na) before computing x**0 cannot care -whether 0**0 = 1 or not. -Any program that depends -upon 0**0 to be invalid is dubious anyway since that -expression's meaning and, if invalid, its consequences -vary from one computer system to another. -.It -Some Algebra texts (e.g.\& Sigler's) define x**0 = 1 for -all x, including x = 0. -This is compatible with the convention that accepts a[0] -as the value of polynomial -.Bd -literal -offset indent -p(x) = a[0]\(**x**0 + a[1]\(**x**1 + a[2]\(**x**2 +...+ a[n]\(**x**n -.Ed -.Pp -at x = 0 rather than reject a[0]\(**0**0 as invalid. -.It -Analysts will accept 0**0 = 1 despite that x**y can -approach anything or nothing as x and y approach 0 -independently. -The reason for setting 0**0 = 1 anyway is this: -.Bd -ragged -offset indent -If x(z) and y(z) are -.Em any -functions analytic (expandable -in power series) in z around z = 0, and if there -x(0) = y(0) = 0, then x(z)**y(z) \(-> 1 as z \(-> 0. -.Ed -.It -If 0**0 = 1, then -\*(If**0 = 1/0**0 = 1 too; and -then \*(Na**0 = 1 too because x**0 = 1 for all finite -and infinite x, i.e., independently of x. -.El -.Sh SEE ALSO -.Xr fenv 3 , -.Xr ldexp 3 , -.Xr log 3 , -.Xr math 3 -.Sh STANDARDS -These functions conform to -.St -isoC-99 . diff --git a/man/fabs.3 b/man/fabs.3 deleted file mode 100644 index 4a3937e..0000000 --- a/man/fabs.3 +++ /dev/null @@ -1,83 +0,0 @@ -.\" Copyright (c) 1991 The Regents of the University of California. -.\" All rights reserved. -.\" -.\" @(#)fabs.3 5.1 (Berkeley) 5/2/91 -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" from: @(#)fabs.3 5.1 (Berkeley) 5/2/91 -.\" $FreeBSD: src/lib/msun/man/fabs.3,v 1.12 2007/01/09 01:02:05 imp Exp $ -.\" -.Dd October 25, 2003 -.Dt FABS 3 -.Os -.Sh NAME -.Nm fabs , -.Nm fabsf , -.Nm fabsl -.Nd floating-point absolute value functions -.Sh LIBRARY -.Lb libm -.Sh SYNOPSIS -.In math.h -.Ft double -.Fn fabs "double x" -.Ft float -.Fn fabsf "float x" -.Ft long double -.Fn fabsl "long double x" -.Sh DESCRIPTION -The -.Fn fabs , -.Fn fabsf -and -.Fn fabsl -functions compute the absolute value of a floating-point number -.Fa x . -.Sh RETURN VALUES -The -.Fn fabs , -.Fn fabsf -and -.Fn fabsl -functions return the absolute value of -.Fa x . -.Sh SEE ALSO -.Xr abs 3 , -.Xr ceil 3 , -.Xr floor 3 , -.Xr ieee 3 , -.Xr math 3 , -.Xr rint 3 -.Sh STANDARDS -The -.Fn fabs -function conforms to -.St -isoC . -The -.Fn fabsf -and -.Fn fabsl -functions conform to -.St -isoC-99 . diff --git a/man/fdim.3 b/man/fdim.3 deleted file mode 100644 index 10facbf..0000000 --- a/man/fdim.3 +++ /dev/null @@ -1,86 +0,0 @@ -.\" Copyright (c) 2004 David Schultz -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" $FreeBSD: src/lib/msun/man/fdim.3,v 1.2 2010/08/16 15:18:30 joel Exp $ -.\" -.Dd June 29, 2004 -.Dt FDIM 3 -.Os -.Sh NAME -.Nm fdim , -.Nm fdimf , -.Nm fdiml -.Nd positive difference functions -.Sh LIBRARY -.Lb libm -.Sh SYNOPSIS -.In math.h -.Ft double -.Fn fdim "double x" "double y" -.Ft float -.Fn fdimf "float x" "float y" -.Ft long double -.Fn fdiml "long double x" "long double y" -.Sh DESCRIPTION -The -.Fn fdim , -.Fn fdimf , -and -.Fn fdiml -functions return the positive difference between -.Fa x -and -.Fa y . -That is, if -.Fa x\- Ns Fa y -is positive, then -.Fa x\- Ns Fa y -is returned. -If either -.Fa x -or -.Fa y -is an \*(Na, then an \*(Na is returned. -Otherwise, the result is -.Li +0.0 . -.Pp -Overflow or underflow may occur if the exact result is not -representable in the return type. -No other exceptions are raised. -.Sh SEE ALSO -.Xr fabs 3 , -.Xr fmax 3 , -.Xr fmin 3 , -.Xr math 3 -.Sh STANDARDS -The -.Fn fdim , -.Fn fdimf , -and -.Fn fdiml -functions conform to -.St -isoC-99 . -.Sh HISTORY -These routines first appeared in -.Fx 5.3 . diff --git a/man/feclearexcept.3 b/man/feclearexcept.3 deleted file mode 100644 index 073de67..0000000 --- a/man/feclearexcept.3 +++ /dev/null @@ -1,139 +0,0 @@ -.\" Copyright (c) 2004 David Schultz -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" $FreeBSD: src/lib/msun/man/feclearexcept.3,v 1.3 2005/01/14 09:12:05 ru Exp $ -.\" -.Dd May 8, 2004 -.Dt FECLEAREXCEPT 3 -.Os -.Sh NAME -.Nm feclearexcept , -.Nm fegetexceptflag , -.Nm feraiseexcept , -.Nm fesetexceptflag , -.Nm fetestexcept -.Nd floating-point exception flag manipulation -.Sh LIBRARY -.Lb libm -.Sh SYNOPSIS -.In fenv.h -.Fd "#pragma STDC FENV_ACCESS ON" -.Ft int -.Fn feclearexcept "int excepts" -.Ft int -.Fn fegetexceptflag "fexcept_t *flagp" "int excepts" -.Ft int -.Fn feraiseexcept "int excepts" -.Ft int -.Fn fesetexceptflag "const fexcept_t *flagp" "int excepts" -.Ft int -.Fn fetestexcept "int excepts" -.Sh DESCRIPTION -The -.Fn feclearexcept -routine clears the floating-point exception flags specified by -.Fa excepts , -whereas -.Fn feraiseexcept -raises the specified exceptions. -Raising an exception causes the corresponding flag to be set, -and a -.Dv SIGFPE -is delivered to the process if the exception is unmasked. -.Pp -The -.Fn fetestexcept -function determines which flags are currently set, of those specified by -.Fa excepts . -.Pp -The -.Fn fegetexceptflag -function stores the state of the exception flags specified in -.Fa excepts -in the opaque object pointed to by -.Fa flagp . -Similarly, -.Fn fesetexceptflag -changes the specified exception flags to reflect the state stored in -the object pointed to by -.Fa flagp . -Note that the flags restored with -.Fn fesetexceptflag -must be a (not necessarily proper) subset of the flags recorded by -a prior call to -.Fn fegetexceptflag . -.Pp -For all of these functions, the possible types of exceptions -include those described in -.Xr fenv 3 . -Some architectures may define other types of floating-point exceptions. -.Sh IMPLEMENTATION NOTES -On some architectures, raising an overflow or underflow exception -also causes an inexact exception to be raised. -In these cases, the overflow or underflow will be raised first. -.Pp -The -.Fn fegetexceptflag -and -.Fn fesetexceptflag -routines are preferred to -.Fn fetestexcept -and -.Fn feraiseexcept , -respectively, for saving and restoring exception flags. -The latter do not re-raise exceptions and may preserve -architecture-specific information such as addresses where -exceptions occurred. -.Sh RETURN VALUES -The -.Fn feclearexcept , -.Fn fegetexceptflag , -.Fn feraiseexcept , -and -.Fn fesetexceptflag -functions return 0 upon success, and non-zero otherwise. -The -.Fn fetestexcept -function returns the bitwise OR of the values of the current exception -flags that were requested. -.Sh SEE ALSO -.Xr sigaction 2 , -.Xr feholdexcept 3 , -.Xr fenv 3 , -.Xr feupdateenv 3 , -.Xr fpgetsticky 3 , -.Xr fpresetsticky 3 -.Sh STANDARDS -The -.Fn feclearexcept , -.Fn fegetexceptflag , -.Fn feraiseexcept , -.Fn fesetexceptflag , -and -.Fn fetestexcept -routines conform to -.St -isoC-99 . -.Sh HISTORY -These functions first appeared in -.Fx 5.3 . diff --git a/man/feenableexcept.3 b/man/feenableexcept.3 deleted file mode 100644 index 0b790e7..0000000 --- a/man/feenableexcept.3 +++ /dev/null @@ -1,98 +0,0 @@ -.\" Copyright (c) 2004 David Schultz -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" $FreeBSD: src/lib/msun/man/feenableexcept.3,v 1.1 2005/03/16 19:04:28 das Exp $ -.\" -.Dd March 16, 2005 -.Dt FEENABLEEXCEPT 3 -.Os -.Sh NAME -.Nm feenableexcept , -.Nm fedisableexcept , -.Nm fegetexcept -.Nd floating-point exception masking -.Sh LIBRARY -.Lb libm -.Sh SYNOPSIS -.In fenv.h -.Fd "#pragma STDC FENV_ACCESS ON" -.Ft int -.Fn feenableexcept "int excepts" -.Ft int -.Fn fedisableexcept "int excepts" -.Ft int -.Fn fegetexcept "void" -.Sh DESCRIPTION -The -.Fn feenableexcept -and -.Fn fedisableexcept -functions -unmask and mask (respectively) exceptions specified in -.Fa excepts . -The -.Fn fegetexcept -function -returns the current exception mask. -All exceptions are masked by default. -.Pp -Floating-point operations that produce unmasked exceptions will trap, and a -.Dv SIGFPE -will be delivered to the process. -By installing a signal handler for -.Dv SIGFPE , -applications can take appropriate action immediately without -testing the exception flags after every operation. -Note that the trap may not be immediate, but it should occur -before the next floating-point instruction is executed. -.Pp -For all of these functions, the possible types of exceptions -include those described in -.Xr fenv 3 . -Some architectures may define other types of floating-point exceptions. -.Sh RETURN VALUES -The -.Fn feenableexcept , -.Fn fedisableexcept , -and -.Fn fegetexcept -functions return a bitmap of the exceptions that were unmasked -prior to the call. -.Sh SEE ALSO -.Xr sigaction 2 , -.Xr feclearexcept 3 , -.Xr feholdexcept 3 , -.Xr fenv 3 , -.Xr feupdateenv 3 -.Sh BUGS -Functions in the standard library may trigger exceptions multiple -times as a result of intermediate computations; -however, they generally do not trigger spurious exceptions. -.Pp -No interface is provided to permit exceptions to be handled in -nontrivial ways. -There is no uniform way for an exception handler to access -information about the exception-causing instruction, or -to determine whether that instruction should be reexecuted -after returning from the handler. diff --git a/man/fegetenv.3 b/man/fegetenv.3 deleted file mode 100644 index 2e386ad..0000000 --- a/man/fegetenv.3 +++ /dev/null @@ -1,113 +0,0 @@ -.\" Copyright (c) 2004 David Schultz -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" $FreeBSD: src/lib/msun/man/fegetenv.3,v 1.1 2004/06/06 10:06:26 das Exp $ -.\" -.Dd May 8, 2004 -.Dt FEGETENV 3 -.Os -.Sh NAME -.Nm fegetenv , -.Nm feholdexcept , -.Nm fesetenv , -.Nm feupdateenv -.Nd floating-point environment save and restore -.Sh LIBRARY -.Lb libm -.Sh SYNOPSIS -.In fenv.h -.Fd "#pragma STDC FENV_ACCESS ON" -.Ft int -.Fn fegetenv "fenv_t *envp" -.Ft int -.Fn feholdexcept "fenv_t *envp" -.Ft int -.Fn fesetenv "const fenv_t *envp" -.Ft int -.Fn feupdateenv "const fenv_t *envp" -.Sh DESCRIPTION -The floating-point environment includes exception flags and masks, the -current rounding mode, and other architecture-specific settings. -However, it does not include the floating-point register file. -.Pp -The -.Fn fegetenv -function stores the current floating-point environment in the object -pointed to by -.Fa envp , -whereas -.Fn feholdexcept -saves the current environment, then clears all exception flags -and masks all floating-point exceptions. -.Pp -The -.Fn fesetenv -function restores a previously saved environment. -The -.Fn feupdateenv -function restores a saved environment as well, but it also -raises any exceptions that were set in the environment it -replaces. -.Pp -The -.Fn feholdexcept -function is often used with -.Fn feupdateenv -or -.Fn fesetenv -to suppress spurious exceptions that occur as a result of -intermediate computations. -An example in -.Xr fenv 3 -demonstrates how to do this. -.Sh RETURN VALUES -The -.Fn fegetenv , -.Fn feholdexcept , -.Fn fesetenv , -and -.Fn feupdateenv -functions return 0 if they succeed, and non-zero otherwise. -.Sh SEE ALSO -.Xr feclearexcept 3 , -.Xr fenv 3 , -.Xr feraiseexcept 3 , -.Xr fesetenv 3 , -.Xr fetestexcept 3 , -.Xr fpgetmask 3 , -.Xr fpgetprec 3 , -.Xr fpsetmask 3 , -.Xr fpsetprec 3 -.Sh STANDARDS -The -.Fn fegetenv , -.Fn feholdexcept , -.Fn fesetenv , -and -.Fn feupdateenv -functions conform to -.St -isoC-99 . -.Sh HISTORY -These routines first appeared in -.Fx 5.3 . diff --git a/man/fegetround.3 b/man/fegetround.3 deleted file mode 100644 index 9384158..0000000 --- a/man/fegetround.3 +++ /dev/null @@ -1,83 +0,0 @@ -.\" Copyright (c) 2004 David Schultz -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" $FreeBSD: src/lib/msun/man/fegetround.3,v 1.2 2005/01/14 09:12:05 ru Exp $ -.\" -.Dd May 8, 2004 -.Dt FEGETROUND 3 -.Os -.Sh NAME -.Nm fegetround , -.Nm fesetround -.Nd floating-point rounding control -.Sh LIBRARY -.Lb libm -.Sh SYNOPSIS -.In fenv.h -.Fd "#pragma STDC FENV_ACCESS ON" -.Ft int -.Fn fegetround void -.Ft int -.Fn fesetround "int round" -.Sh DESCRIPTION -The -.Fn fegetround -function determines the current floating-point rounding mode, -and the -.Fn fesetround -function sets the current rounding mode to -.Fa round . -The rounding mode is one of -.Dv FE_TONEAREST , FE_DOWNWARD , FE_UPWARD , -or -.Dv FE_TOWARDZERO , -as described in -.Xr fenv 3 . -.Sh RETURN VALUES -The -.Fn fegetround -routine returns the current rounding mode. -The -.Fn fesetround -function returns 0 on success and non-zero otherwise; -however, the present implementation always succeeds. -.Sh SEE ALSO -.Xr fenv 3 , -.Xr fpgetround 3 , -.Xr fpsetround 3 -.Sh STANDARDS -The -.Fn fegetround -and -.Fn fesetround -functions conform to -.St -isoC-99 . -.Sh HISTORY -These routines first appeared in -.Fx 5.3 . -They supersede the non-standard -.Xr fpgetround 3 -and -.Xr fpsetround 3 -functions. diff --git a/man/fenv.3 b/man/fenv.3 deleted file mode 100644 index 63ee7a1..0000000 --- a/man/fenv.3 +++ /dev/null @@ -1,293 +0,0 @@ -.\" Copyright (c) 2004 David Schultz -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" $FreeBSD: src/lib/msun/man/fenv.3,v 1.8 2011/10/21 14:23:59 das Exp $ -.\" -.Dd March 16, 2005 -.Dt FENV 3 -.Os -.Sh NAME -.Nm feclearexcept , -.Nm fegetexceptflag , -.Nm feraiseexcept , -.Nm fesetexceptflag , -.Nm fetestexcept , -.Nm fegetround , -.Nm fesetround , -.Nm fegetenv , -.Nm feholdexcept , -.Nm fesetenv , -.Nm feupdateenv , -.Nm feenableexcept , -.Nm fedisableexcept , -.Nm fegetexcept -.Nd floating-point environment control -.Sh LIBRARY -.Lb libm -.Sh SYNOPSIS -.In fenv.h -.Fd "#pragma STDC FENV_ACCESS ON" -.Ft int -.Fn feclearexcept "int excepts" -.Ft int -.Fn fegetexceptflag "fexcept_t *flagp" "int excepts" -.Ft int -.Fn feraiseexcept "int excepts" -.Ft int -.Fn fesetexceptflag "const fexcept_t *flagp" "int excepts" -.Ft int -.Fn fetestexcept "int excepts" -.Ft int -.Fn fegetround void -.Ft int -.Fn fesetround "int round" -.Ft int -.Fn fegetenv "fenv_t *envp" -.Ft int -.Fn feholdexcept "fenv_t *envp" -.Ft int -.Fn fesetenv "const fenv_t *envp" -.Ft int -.Fn feupdateenv "const fenv_t *envp" -.Ft int -.Fn feenableexcept "int excepts" -.Ft int -.Fn fedisableexcept "int excepts" -.Ft int -.Fn fegetexcept void -.Sh DESCRIPTION -The -.In fenv.h -routines manipulate the floating-point environment, -which includes the exception flags and rounding modes defined in -.St -ieee754 . -.Ss Exceptions -Exception flags are set as side-effects of floating-point arithmetic -operations and math library routines, and they remain set until -explicitly cleared. -The following macros expand to bit flags of type -.Vt int -representing the five standard floating-point exceptions. -.Bl -tag -width ".Dv FE_DIVBYZERO" -.It Dv FE_DIVBYZERO -A divide-by-zero exception occurs when the -.Em exact -result of a computation is infinite (according to the limit definition). -For example, dividing a finite non-zero number by zero or computing -.Fn log 0 -raises a divide-by-zero exception. -.It Dv FE_INEXACT -An inexact exception is raised whenever there is a loss of accuracy -due to rounding. -.It Dv FE_INVALID -Invalid operation exceptions occur when a program attempts to -perform calculations for which there is no reasonable representable -answer. -For instance, subtraction of like-signed infinities, division of zero by zero, -ordered comparison involving \*(Nas, and taking the real square root of a -negative number are all invalid operations. -.It Dv FE_OVERFLOW -In contrast with divide-by-zero, -an overflow exception occurs when an infinity is produced because -the magnitude of the exact result is -.Em finite -but too large to fit in the destination type. -For example, computing -.Li DBL_MAX * 2 -raises an overflow exception. -.It Dv FE_UNDERFLOW -Underflow occurs when the result of a computation loses precision -because it is too close to zero. -The result is a subnormal number or zero. -.El -.Pp -Additionally, the -.Dv FE_ALL_EXCEPT -macro expands to the bitwise OR of the above flags and any -architecture-specific flags. -Combinations of these flags are passed to the -.Fn feclearexcept , -.Fn fegetexceptflag , -.Fn feraiseexcept , -.Fn fesetexceptflag , -and -.Fn fetestexcept -functions to clear, save, raise, restore, and examine the -processor's floating-point exception flags, respectively. -.Pp -Exceptions may be -.Em unmasked -with -.Fn feenableexcept -and masked with -.Fn fedisableexcept . -Unmasked exceptions cause a trap when they are produced, and -all exceptions are masked by default. -The current mask can be tested with -.Fn fegetexcept . -.Ss Rounding Modes -.St -ieee754 -specifies four rounding modes. -These modes control the direction in which results are rounded -from their exact values in order to fit them into binary -floating-point variables. -The four modes correspond with the following symbolic constants. -.Bl -tag -width ".Dv FE_TOWARDZERO" -.It Dv FE_TONEAREST -Results are rounded to the closest representable value. -If the exact result is exactly half way between two representable -values, the value whose last binary digit is even (zero) is chosen. -This is the default mode. -.It Dv FE_DOWNWARD -Results are rounded towards negative \*[If]. -.It Dv FE_UPWARD -Results are rounded towards positive \*[If]. -.It Dv FE_TOWARDZERO -Results are rounded towards zero. -.El -.Pp -The -.Fn fegetround -and -.Fn fesetround -functions query and set the rounding mode. -.Ss Environment Control -The -.Fn fegetenv -and -.Fn fesetenv -functions save and restore the floating-point environment, -which includes exception flags, the current exception mask, -the rounding mode, and possibly other implementation-specific -state. -The -.Fn feholdexcept -function behaves like -.Fn fegetenv , -but with the additional effect of clearing the exception flags and -installing a -.Em non-stop -mode. -In non-stop mode, floating-point operations will set exception flags -as usual, but no -.Dv SIGFPE -signals will be generated as a result. -Non-stop mode is the default, but it may be altered by -.Fn feenableexcept -and -.Fn fedisableexcept . -The -.Fn feupdateenv -function restores a saved environment similarly to -.Fn fesetenv , -but it also re-raises any floating-point exceptions from the old -environment. -.Pp -The macro -.Dv FE_DFL_ENV -expands to a pointer to the default environment. -.Sh EXAMPLES -The following routine computes the square root function. -It explicitly raises an invalid exception on appropriate inputs using -.Fn feraiseexcept . -It also defers inexact exceptions while it computes intermediate -values, and then it allows an inexact exception to be raised only if -the final answer is inexact. -.Bd -literal -offset indent -#pragma STDC FENV_ACCESS ON -double sqrt(double n) { - double x = 1.0; - fenv_t env; - - if (isnan(n) || n < 0.0) { - feraiseexcept(FE_INVALID); - return (NAN); - } - if (isinf(n) || n == 0.0) - return (n); - feholdexcept(&env); - while (fabs((x * x) - n) > DBL_EPSILON * 2 * x) - x = (x / 2) + (n / (2 * x)); - if (x * x == n) - feclearexcept(FE_INEXACT); - feupdateenv(&env); - return (x); -} -.Ed -.Sh SEE ALSO -.Xr cc 1 , -.Xr feclearexcept 3 , -.Xr fedisableexcept 3 , -.Xr feenableexcept 3 , -.Xr fegetenv 3 , -.Xr fegetexcept 3 , -.Xr fegetexceptflag 3 , -.Xr fegetround 3 , -.Xr feholdexcept 3 , -.Xr feraiseexcept 3 , -.Xr fesetenv 3 , -.Xr fesetexceptflag 3 , -.Xr fesetround 3 , -.Xr fetestexcept 3 , -.Xr feupdateenv 3 , -.Xr fpgetprec 3 , -.Xr fpsetprec 3 -.Sh STANDARDS -Except as noted below, -.In fenv.h -conforms to -.St -isoC-99 . -The -.Fn feenableexcept , -.Fn fedisableexcept , -and -.Fn fegetexcept -routines are extensions. -.Sh HISTORY -The -.In fenv.h -header first appeared in -.Fx 5.3 . -It supersedes the non-standard routines defined in -.In ieeefp.h -and documented in -.Xr fpgetround 3 . -.Sh CAVEATS -The FENV_ACCESS pragma can be enabled with -.Dl "#pragma STDC FENV_ACCESS ON" -and disabled with the -.Dl "#pragma STDC FENV_ACCESS OFF" -directive. -This lexically-scoped annotation tells the compiler that the program -may access the floating-point environment, so optimizations that would -violate strict IEEE-754 semantics are disabled. -If execution reaches a block of code for which -.Dv FENV_ACCESS -is off, the floating-point environment will become undefined. -.Sh BUGS -The -.Dv FENV_ACCESS -pragma is unimplemented in the system compiler. -However, non-constant expressions generally produce the correct -side-effects at low optimization levels. diff --git a/man/floor.3 b/man/floor.3 deleted file mode 100644 index 359a6b4..0000000 --- a/man/floor.3 +++ /dev/null @@ -1,78 +0,0 @@ -.\" Copyright (c) 1985, 1991 The Regents of the University of California. -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" from: @(#)floor.3 6.5 (Berkeley) 4/19/91 -.\" $FreeBSD: src/lib/msun/man/floor.3,v 1.18 2007/01/09 01:02:06 imp Exp $ -.\" -.Dd January 13, 2005 -.Dt FLOOR 3 -.Os -.Sh NAME -.Nm floor , -.Nm floorf , -.Nm floorl -.Nd largest integral value less than or equal to x -.Sh LIBRARY -.Lb libm -.Sh SYNOPSIS -.In math.h -.Ft double -.Fn floor "double x" -.Ft float -.Fn floorf "float x" -.Ft "long double" -.Fn floorl "long double x" -.Sh DESCRIPTION -The -.Fn floor , -.Fn floorf -and -.Fn floorl -functions return the largest integral value -less than or equal to -.Fa x , -expressed as a floating-point number. -.Sh SEE ALSO -.Xr abs 3 , -.Xr ceil 3 , -.Xr fabs 3 , -.Xr ieee 3 , -.Xr math 3 , -.Xr rint 3 , -.Xr round 3 , -.Xr trunc 3 -.Sh STANDARDS -The -.Fn floor -function conforms to -.St -isoC . -The -.Fn floorf -and -.Fn floorl -functions conform to -.St -isoC-99 . diff --git a/man/fma.3 b/man/fma.3 deleted file mode 100644 index 078a6e2..0000000 --- a/man/fma.3 +++ /dev/null @@ -1,116 +0,0 @@ -.\" Copyright (c) 2005 David Schultz -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" $FreeBSD: src/lib/msun/man/fma.3,v 1.3 2005/11/24 09:25:10 joel Exp $ -.\" -.Dd January 22, 2005 -.Dt FMA 3 -.Os -.Sh NAME -.Nm fma , -.Nm fmaf , -.Nm fmal -.Nd fused multiply-add -.Sh LIBRARY -.Lb libm -.Sh SYNOPSIS -.In math.h -.Ft double -.Fn fma "double x" "double y" "double z" -.Ft float -.Fn fmaf "float x" "float y" "float z" -.Ft long double -.Fn fmal "long double x" "long double y" "long double z" -.Sh DESCRIPTION -The -.Fn fma , -.Fn fmaf , -and -.Fn fmal -functions return -.No "(x * y) + z" , -computed with only one rounding error. -Using the ordinary multiplication and addition operators, by contrast, -results in two roundings: one for the intermediate product and one for -the final result. -.Pp -For instance, the expression -.No "1.2e100 * 2.0e208 - 1.4e308" -produces \*(If due to overflow in the intermediate product, whereas -.No "fma(1.2e100, 2.0e208, -1.4e308)" -returns approximately 1.0e308. -.Pp -The fused multiply-add operation is often used to improve the -accuracy of calculations such as dot products. -It may also be used to improve performance on machines that implement -it natively. -The macros -.Dv FP_FAST_FMA , -.Dv FP_FAST_FMAF -and -.Dv FP_FAST_FMAL -may be defined in -.In math.h -to indicate that -.Fn fma , -.Fn fmaf , -and -.Fn fmal -(respectively) have comparable or faster speed than a multiply -operation followed by an add operation. -.Sh IMPLEMENTATION NOTES -In general, these routines will behave as one would expect if -.No "x * y + z" -were computed with unbounded precision and range, -then rounded to the precision of the return type. -However, on some platforms, if -.Fa z -is \*(Na, these functions may not raise an exception even -when the computation of -.No "x * y" -would have otherwise generated an invalid exception. -.Sh SEE ALSO -.Xr fenv 3 , -.Xr math 3 -.Sh STANDARDS -The -.Fn fma , -.Fn fmaf , -and -.Fn fmal -functions conform to -.St -isoC-99 . -A fused multiply-add operation with virtually identical -characteristics appears in IEEE draft standard 754R. -.Sh HISTORY -The -.Fn fma -and -.Fn fmaf -routines first appeared in -.Fx 5.4 , -and -.Fn fmal -appeared in -.Fx 6.0 . diff --git a/man/fmax.3 b/man/fmax.3 deleted file mode 100644 index 03249a3..0000000 --- a/man/fmax.3 +++ /dev/null @@ -1,97 +0,0 @@ -.\" Copyright (c) 2004 David Schultz -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" $FreeBSD: src/lib/msun/man/fmax.3,v 1.2 2005/01/14 09:12:05 ru Exp $ -.\" -.Dd June 29, 2004 -.Dt FMAX 3 -.Os -.Sh NAME -.Nm fmax , -.Nm fmaxf , -.Nm fmaxl , -.Nm fmin , -.Nm fminf , -.Nm fminl -.Nd floating-point maximum and minimum functions -.Sh LIBRARY -.Lb libm -.Sh SYNOPSIS -.In math.h -.Ft double -.Fn fmax "double x" "double y" -.Ft float -.Fn fmaxf "float x" "float y" -.Ft "long double" -.Fn fmaxl "long double x" "long double y" -.Ft double -.Fn fmin "double x" "double y" -.Ft float -.Fn fminf "float x" "float y" -.Ft "long double" -.Fn fminl "long double x" "long double y" -.Sh DESCRIPTION -The -.Fn fmax , -.Fn fmaxf , -and -.Fn fmaxl -functions return the larger of -.Fa x -and -.Fa y , -and likewise, the -.Fn fmin , -.Fn fminf , -and -.Fn fminl -functions return the smaller of -.Fa x -and -.Fa y . -They treat -.Li +0.0 -as being larger than -.Li -0.0 . -If one argument is an \*(Na, then the other argument is returned. -If both arguments are \*(Nas, then the result is an \*(Na. -These routines do not raise any floating-point exceptions. -.Sh SEE ALSO -.Xr fabs 3 , -.Xr fdim 3 , -.Xr math 3 -.Sh STANDARDS -The -.Fn fmax , -.Fn fmaxf , -.Fn fmaxl , -.Fn fmin , -.Fn fminf , -and -.Fn fminl -functions conform to -.St -isoC-99 . -.Sh HISTORY -These routines first appeared in -.Fx 5.3 . diff --git a/man/fmod.3 b/man/fmod.3 deleted file mode 100644 index 9909e26..0000000 --- a/man/fmod.3 +++ /dev/null @@ -1,87 +0,0 @@ -.\" Copyright (c) 1991 The Regents of the University of California. -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" from: @(#)fmod.3 5.1 (Berkeley) 5/2/91 -.\" $FreeBSD: src/lib/msun/man/fmod.3,v 1.10 2008/06/19 22:39:53 das Exp $ -.\" -.Dd June 19, 2008 -.Dt FMOD 3 -.Os -.Sh NAME -.Nm fmod , -.Nm fmodf , -.Nm fmodl -.Nd floating-point remainder functions -.Sh LIBRARY -.Lb libm -.Sh SYNOPSIS -.In math.h -.Ft double -.Fn fmod "double x" "double y" -.Ft float -.Fn fmodf "float x" "float y" -.Ft long double -.Fn fmodl "long double x" "long double y" -.Sh DESCRIPTION -The -.Fn fmod , -.Fn fmodf , -and -.Fn fmodl -functions compute the floating-point remainder of -.Fa x Ns / Fa y . -.Sh RETURN VALUES -If -.Fa y -is non-zero, the -.Fn fmod , -.Fn fmodf , -and -.Fn fmodl -functions return the value -.Sm off -.Fa x - Em i * Fa y , -.Sm on -for some integer -.Em i , -such that the result has the same sign as -.Fa x -and magnitude less than the magnitude of -.Fa y . -If -.Fa y -is zero, a \*(Na is produced. -.Sh SEE ALSO -.Xr math 3 -.Sh STANDARDS -The -.Fn fmod , -.Fn fmodf , -and -.Fn fmodl -functions conform to -.St -isoC-99 . diff --git a/man/hypot.3 b/man/hypot.3 deleted file mode 100644 index 74d3d44..0000000 --- a/man/hypot.3 +++ /dev/null @@ -1,145 +0,0 @@ -.\" Copyright (c) 1985, 1991 Regents of the University of California. -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" from: @(#)hypot.3 6.7 (Berkeley) 5/6/91 -.\" $FreeBSD: src/lib/msun/man/hypot.3,v 1.18 2010/05/13 12:08:11 uqs Exp $ -.\" -.Dd March 30, 2008 -.Dt HYPOT 3 -.Os -.Sh NAME -.Nm hypot , -.Nm hypotf , -.Nm hypotl , -.Nm cabs , -.Nm cabsf , -.Nm cabsl -.Nd Euclidean distance and complex absolute value functions -.Sh LIBRARY -.Lb libm -.Sh SYNOPSIS -.In math.h -.Ft double -.Fn hypot "double x" "double y" -.Ft float -.Fn hypotf "float x" "float y" -.Ft "long double" -.Fn hypotl "long double x" "long double y" -.In complex.h -.Ft double -.Fn cabs "double complex z" -.Ft float -.Fn cabsf "float complex z" -.Ft "long double" -.Fn cabsl "long double complex z" -.Sh DESCRIPTION -The -.Fn hypot , -.Fn hypotf -and -.Fn hypotl -functions -compute the -sqrt(x*x+y*y) -in such a way that underflow will not happen, and overflow -occurs only if the final result deserves it. -The -.Fn cabs , -.Fn cabsf -and -.Fn cabsl -functions compute the complex absolute value of -.Fa z . -.Pp -.Fn hypot "\*(If" "v" -= -.Fn hypot "v" "\*(If" -= +\*(If for all -.Fa v , -including \*(Na. -.Sh ERROR (due to Roundoff, etc.) -Below 0.97 -.Em ulps . -Consequently -.Fn hypot "5.0" "12.0" -= 13.0 -exactly; -in general, hypot and cabs return an integer whenever an -integer might be expected. -.Sh NOTES -As might be expected, -.Fn hypot "v" "\*(Na" -and -.Fn hypot "\*(Na" "v" -are \*(Na for all -.Em finite -.Fa v . -But programmers -might be surprised at first to discover that -.Fn hypot "\(+-\*(If" "\*(Na" -= +\*(If. -This is intentional; it happens because -.Fn hypot "\*(If" "v" -= +\*(If -for -.Em all -.Fa v , -finite or infinite. -Hence -.Fn hypot "\*(If" "v" -is independent of -.Fa v . -Unlike the reserved operand fault on a -.Tn VAX , -the -.Tn IEEE -\*(Na is designed to -disappear when it turns out to be irrelevant, as it does in -.Fn hypot "\*(If" "\*(Na" . -.Sh SEE ALSO -.Xr carg 3 , -.Xr math 3 , -.Xr sqrt 3 -.Sh STANDARDS -The -.Fn hypot , -.Fn hypotf , -.Fn hypotl , -.Fn cabs , -.Fn cabsf , -and -.Fn cabsl -functions conform to -.St -isoC-99 . -.Sh HISTORY -Both a -.Fn hypot -function and a -.Fn cabs -function -appeared in -.At v7 . diff --git a/man/ieee.3 b/man/ieee.3 deleted file mode 100644 index 0551a3d..0000000 --- a/man/ieee.3 +++ /dev/null @@ -1,444 +0,0 @@ -.\" Copyright (c) 1985 Regents of the University of California. -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" from: @(#)ieee.3 6.4 (Berkeley) 5/6/91 -.\" $FreeBSD: src/lib/msun/man/ieee.3,v 1.25 2011/10/16 14:30:28 eadler Exp $ -.\" -.Dd January 26, 2005 -.Dt IEEE 3 -.Os -.Sh NAME -.Nm ieee -.Nd IEEE standard 754 for floating-point arithmetic -.Sh DESCRIPTION -The IEEE Standard 754 for Binary Floating-Point Arithmetic -defines representations of floating-point numbers and abstract -properties of arithmetic operations relating to precision, -rounding, and exceptional cases, as described below. -.Ss IEEE STANDARD 754 Floating-Point Arithmetic -Radix: Binary. -.Pp -Overflow and underflow: -.Bd -ragged -offset indent -compact -Overflow goes by default to a signed \*(If. -Underflow is -.Em gradual . -.Ed -.Pp -Zero is represented ambiguously as +0 or \-0. -.Bd -ragged -offset indent -compact -Its sign transforms correctly through multiplication or -division, and is preserved by addition of zeros -with like signs; but x\-x yields +0 for every -finite x. -The only operations that reveal zero's -sign are division by zero and -.Fn copysign x \(+-0 . -In particular, comparison (x > y, x \(>= y, etc.)\& -cannot be affected by the sign of zero; but if -finite x = y then \*(If = 1/(x\-y) \(!= \-1/(y\-x) = \-\*(If. -.Ed -.Pp -Infinity is signed. -.Bd -ragged -offset indent -compact -It persists when added to itself -or to any finite number. -Its sign transforms -correctly through multiplication and division, and -(finite)/\(+-\*(If\0=\0\(+-0 -(nonzero)/0 = \(+-\*(If. -But -\*(If\-\*(If, \*(If\(**0 and \*(If/\*(If -are, like 0/0 and sqrt(\-3), -invalid operations that produce \*(Na. ... -.Ed -.Pp -Reserved operands (\*(Nas): -.Bd -ragged -offset indent -compact -An \*(Na is -.Em ( N Ns ot Em a N Ns umber ) . -Some \*(Nas, called Signaling \*(Nas, trap any floating-point operation -performed upon them; they are used to mark missing -or uninitialized values, or nonexistent elements -of arrays. -The rest are Quiet \*(Nas; they are -the default results of Invalid Operations, and -propagate through subsequent arithmetic operations. -If x \(!= x then x is \*(Na; every other predicate -(x > y, x = y, x < y, ...) is FALSE if \*(Na is involved. -.Ed -.Pp -Rounding: -.Bd -ragged -offset indent -compact -Every algebraic operation (+, \-, \(**, /, -\(sr) -is rounded by default to within half an -.Em ulp , -and when the rounding error is exactly half an -.Em ulp -then -the rounded value's least significant bit is zero. -(An -.Em ulp -is one -.Em U Ns nit -in the -.Em L Ns ast -.Em P Ns lace . ) -This kind of rounding is usually the best kind, -sometimes provably so; for instance, for every -x = 1.0, 2.0, 3.0, 4.0, ..., 2.0**52, we find -(x/3.0)\(**3.0 == x and (x/10.0)\(**10.0 == x and ... -despite that both the quotients and the products -have been rounded. -Only rounding like IEEE 754 can do that. -But no single kind of rounding can be -proved best for every circumstance, so IEEE 754 -provides rounding towards zero or towards -+\*(If or towards \-\*(If -at the programmer's option. -.Ed -.Pp -Exceptions: -.Bd -ragged -offset indent -compact -IEEE 754 recognizes five kinds of floating-point exceptions, -listed below in declining order of probable importance. -.Bl -column -offset indent "Invalid Operation" "Gradual Underflow" -.Em "Exception Default Result" -Invalid Operation \*(Na, or FALSE -Overflow \(+-\*(If -Divide by Zero \(+-\*(If -Underflow Gradual Underflow -Inexact Rounded value -.El -.Pp -NOTE: An Exception is not an Error unless handled -badly. -What makes a class of exceptions exceptional -is that no single default response can be satisfactory -in every instance. -On the other hand, if a default -response will serve most instances satisfactorily, -the unsatisfactory instances cannot justify aborting -computation every time the exception occurs. -.Ed -.Ss Data Formats -Single-precision: -.Bd -ragged -offset indent -compact -Type name: -.Vt float -.Pp -Wordsize: 32 bits. -.Pp -Precision: 24 significant bits, -roughly like 7 significant decimals. -.Bd -ragged -offset indent -compact -If x and x' are consecutive positive single-precision -numbers (they differ by 1 -.Em ulp ) , -then -.Bd -ragged -compact -5.9e\-08 < 0.5**24 < (x'\-x)/x \(<= 0.5**23 < 1.2e\-07. -.Ed -.Ed -.Pp -.Bl -column "XXX" -compact -Range: Overflow threshold = 2.0**128 = 3.4e38 - Underflow threshold = 0.5**126 = 1.2e\-38 -.El -.Bd -ragged -offset indent -compact -Underflowed results round to the nearest -integer multiple of 0.5**149 = 1.4e\-45. -.Ed -.Ed -.Pp -Double-precision: -.Bd -ragged -offset indent -compact -Type name: -.Vt double -.Bd -ragged -offset indent -compact -On some architectures, -.Vt long double -is the same as -.Vt double . -.Ed -.Pp -Wordsize: 64 bits. -.Pp -Precision: 53 significant bits, -roughly like 16 significant decimals. -.Bd -ragged -offset indent -compact -If x and x' are consecutive positive double-precision -numbers (they differ by 1 -.Em ulp ) , -then -.Bd -ragged -compact -1.1e\-16 < 0.5**53 < (x'\-x)/x \(<= 0.5**52 < 2.3e\-16. -.Ed -.Ed -.Pp -.Bl -column "XXX" -compact -Range: Overflow threshold = 2.0**1024 = 1.8e308 - Underflow threshold = 0.5**1022 = 2.2e\-308 -.El -.Bd -ragged -offset indent -compact -Underflowed results round to the nearest -integer multiple of 0.5**1074 = 4.9e\-324. -.Ed -.Ed -.Pp -Extended-precision: -.Bd -ragged -offset indent -compact -Type name: -.Vt long double -(when supported by the hardware) -.Pp -Wordsize: 96 bits. -.Pp -Precision: 64 significant bits, -roughly like 19 significant decimals. -.Bd -ragged -offset indent -compact -If x and x' are consecutive positive extended-precision -numbers (they differ by 1 -.Em ulp ) , -then -.Bd -ragged -compact -1.0e\-19 < 0.5**63 < (x'\-x)/x \(<= 0.5**62 < 2.2e\-19. -.Ed -.Ed -.Pp -.Bl -column "XXX" -compact -Range: Overflow threshold = 2.0**16384 = 1.2e4932 - Underflow threshold = 0.5**16382 = 3.4e\-4932 -.El -.Bd -ragged -offset indent -compact -Underflowed results round to the nearest -integer multiple of 0.5**16445 = 5.7e\-4953. -.Ed -.Ed -.Pp -Quad-extended-precision: -.Bd -ragged -offset indent -compact -Type name: -.Vt long double -(when supported by the hardware) -.Pp -Wordsize: 128 bits. -.Pp -Precision: 113 significant bits, -roughly like 34 significant decimals. -.Bd -ragged -offset indent -compact -If x and x' are consecutive positive quad-extended-precision -numbers (they differ by 1 -.Em ulp ) , -then -.Bd -ragged -compact -9.6e\-35 < 0.5**113 < (x'\-x)/x \(<= 0.5**112 < 2.0e\-34. -.Ed -.Ed -.Pp -.Bl -column "XXX" -compact -Range: Overflow threshold = 2.0**16384 = 1.2e4932 - Underflow threshold = 0.5**16382 = 3.4e\-4932 -.El -.Bd -ragged -offset indent -compact -Underflowed results round to the nearest -integer multiple of 0.5**16494 = 6.5e\-4966. -.Ed -.Ed -.Ss Additional Information Regarding Exceptions -.Pp -For each kind of floating-point exception, IEEE 754 -provides a Flag that is raised each time its exception -is signaled, and stays raised until the program resets -it. -Programs may also test, save and restore a flag. -Thus, IEEE 754 provides three ways by which programs -may cope with exceptions for which the default result -might be unsatisfactory: -.Bl -enum -.It -Test for a condition that might cause an exception -later, and branch to avoid the exception. -.It -Test a flag to see whether an exception has occurred -since the program last reset its flag. -.It -Test a result to see whether it is a value that only -an exception could have produced. -.Pp -CAUTION: The only reliable ways to discover -whether Underflow has occurred are to test whether -products or quotients lie closer to zero than the -underflow threshold, or to test the Underflow -flag. -(Sums and differences cannot underflow in -IEEE 754; if x \(!= y then x\-y is correct to -full precision and certainly nonzero regardless of -how tiny it may be.) -Products and quotients that -underflow gradually can lose accuracy gradually -without vanishing, so comparing them with zero -(as one might on a VAX) will not reveal the loss. -Fortunately, if a gradually underflowed value is -destined to be added to something bigger than the -underflow threshold, as is almost always the case, -digits lost to gradual underflow will not be missed -because they would have been rounded off anyway. -So gradual underflows are usually -.Em provably -ignorable. -The same cannot be said of underflows flushed to 0. -.El -.Pp -At the option of an implementor conforming to IEEE 754, -other ways to cope with exceptions may be provided: -.Bl -enum -.It -ABORT. -This mechanism classifies an exception in -advance as an incident to be handled by means -traditionally associated with error-handling -statements like "ON ERROR GO TO ...". -Different -languages offer different forms of this statement, -but most share the following characteristics: -.Bl -dash -.It -No means is provided to substitute a value for -the offending operation's result and resume -computation from what may be the middle of an -expression. -An exceptional result is abandoned. -.It -In a subprogram that lacks an error-handling -statement, an exception causes the subprogram to -abort within whatever program called it, and so -on back up the chain of calling subprograms until -an error-handling statement is encountered or the -whole task is aborted and memory is dumped. -.El -.It -STOP. -This mechanism, requiring an interactive -debugging environment, is more for the programmer -than the program. -It classifies an exception in -advance as a symptom of a programmer's error; the -exception suspends execution as near as it can to -the offending operation so that the programmer can -look around to see how it happened. -Quite often -the first several exceptions turn out to be quite -unexceptionable, so the programmer ought ideally -to be able to resume execution after each one as if -execution had not been stopped. -.It -\&... Other ways lie beyond the scope of this document. -.El -.Pp -Ideally, each -elementary function should act as if it were indivisible, or -atomic, in the sense that ... -.Bl -enum -.It -No exception should be signaled that is not deserved by -the data supplied to that function. -.It -Any exception signaled should be identified with that -function rather than with one of its subroutines. -.It -The internal behavior of an atomic function should not -be disrupted when a calling program changes from -one to another of the five or so ways of handling -exceptions listed above, although the definition -of the function may be correlated intentionally -with exception handling. -.El -.Pp -The functions in -.Nm libm -are only approximately atomic. -They signal no inappropriate exception except possibly ... -.Bl -tag -width indent -offset indent -compact -.It Xo -Over/Underflow -.Xc -when a result, if properly computed, might have lain barely within range, and -.It Xo -Inexact in -.Fn cabs , -.Fn cbrt , -.Fn hypot , -.Fn log10 -and -.Fn pow -.Xc -when it happens to be exact, thanks to fortuitous cancellation of errors. -.El -Otherwise, ... -.Bl -tag -width indent -offset indent -compact -.It Xo -Invalid Operation is signaled only when -.Xc -any result but \*(Na would probably be misleading. -.It Xo -Overflow is signaled only when -.Xc -the exact result would be finite but beyond the overflow threshold. -.It Xo -Divide-by-Zero is signaled only when -.Xc -a function takes exactly infinite values at finite operands. -.It Xo -Underflow is signaled only when -.Xc -the exact result would be nonzero but tinier than the underflow threshold. -.It Xo -Inexact is signaled only when -.Xc -greater range or precision would be needed to represent the exact result. -.El -.Sh SEE ALSO -.Xr fenv 3 , -.Xr ieee_test 3 , -.Xr math 3 -.Pp -An explanation of IEEE 754 and its proposed extension p854 -was published in the IEEE magazine MICRO in August 1984 under -the title "A Proposed Radix- and Word-length-independent -Standard for Floating-point Arithmetic" by -.An "W. J. Cody" -et al. -The manuals for Pascal, C and BASIC on the Apple Macintosh -document the features of IEEE 754 pretty well. -Articles in the IEEE magazine COMPUTER vol.\& 14 no.\& 3 (Mar.\& -1981), and in the ACM SIGNUM Newsletter Special Issue of -Oct.\& 1979, may be helpful although they pertain to -superseded drafts of the standard. -.Sh STANDARDS -.St -ieee754 diff --git a/man/ieee_test.3 b/man/ieee_test.3 deleted file mode 100644 index a6e8dc2..0000000 --- a/man/ieee_test.3 +++ /dev/null @@ -1,89 +0,0 @@ -.\" Copyright (c) 1985, 1991 Regents of the University of California. -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" from: @(#)ieee.3 6.4 (Berkeley) 5/6/91 -.\" $FreeBSD: src/lib/msun/man/ieee_test.3,v 1.14 2007/01/09 01:02:06 imp Exp $ -.\" -.Dd November 6, 2005 -.Dt IEEE_TEST 3 -.Os -.Sh NAME -.Nm scalb , -.Nm scalbf , -.Nm significand , -.Nm significandf -.Nd IEEE test functions -.Sh LIBRARY -.Lb libm -.Sh SYNOPSIS -.In math.h -.Ft double -.Fn scalb "double x" "double n" -.Ft float -.Fn scalbf "float x" "float n" -.Ft double -.Fn significand "double x" -.Ft float -.Fn significandf "float x" -.Sh DESCRIPTION -These functions allow users to test conformance to -.St -ieee754 . -Their use is not otherwise recommended. -.Pp -.Fn scalb x n -and -.Fn scalbf x n -return -.Fa x Ns \(**(2** Ns Fa n ) -computed by exponent manipulation. -If -.Fa n -is not an integer, \*(Pm\*(If, or an \*(Na, the result is unspecified. -.Pp -.Fn significand x -and -.Fn significandf x -return -.Fa sig , -where -.Fa x -:= -.Fa sig No \(** 2** Ns Fa n -with 1 \(<= -.Fa sig -< 2. -.Fn significand x -and -.Fn significandf x -are not defined when -.Fa x -is 0, \*(Pm\*(If, or \*(Na. -.Sh SEE ALSO -.Xr ieee 3 , -.Xr math 3 -.Sh STANDARDS -.St -ieee754 diff --git a/man/ilogb.3 b/man/ilogb.3 deleted file mode 100644 index a4c5d12..0000000 --- a/man/ilogb.3 +++ /dev/null @@ -1,124 +0,0 @@ -.\" Copyright (c) 1985, 1991 Regents of the University of California. -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" from: @(#)ieee.3 6.4 (Berkeley) 5/6/91 -.\" $FreeBSD: src/lib/msun/man/ilogb.3,v 1.5 2007/12/17 03:53:38 das Exp $ -.\" -.Dd December 16, 2007 -.Dt ILOGB 3 -.Os -.Sh NAME -.Nm ilogb , -.Nm ilogbf , -.Nm ilogbl , -.Nm logb , -.Nm logbf , -.Nm logbl -.Nd extract exponent -.Sh LIBRARY -.Lb libm -.Sh SYNOPSIS -.In math.h -.Ft int -.Fn ilogb "double x" -.Ft int -.Fn ilogbf "float x" -.Ft int -.Fn ilogbl "long double x" -.Ft double -.Fn logb "double x" -.Ft float -.Fn logbf "float x" -.Ft long double -.Fn logbl "long double x" -.Sh DESCRIPTION -.Fn ilogb , -.Fn ilogbf -and -.Fn ilogbl -return -.Fa x Ns 's exponent -in integer format. -.Fn ilogb \*(Pm\*(If -returns -.Dv INT_MAX , -.Fn ilogb \*(Pm\*(Na -returns -.Dv FP_ILOGBNAN , -and -.Fn ilogb 0 -returns -.Dv FP_ILOGB0 . -.Pp -.Fn logb x , -.Fn logbf x , -and -.Fn logbl x -return -.Fa x Ns 's exponent -in floating\-point format with the same precision as -.Fa x . -.Fn logb \*(Pm\*(If -returns +\*(If, and -.Fn logb 0 -returns -\*(If with a division by zero exception. -.Sh SEE ALSO -.Xr frexp 3 , -.Xr ieee 3 , -.Xr math 3 , -.Xr scalbn 3 -.Sh STANDARDS -The -.Fn ilogb , -.Fn ilogbf , -.Fn ilogbl , -.Fn logb , -.Fn logbf , -and -.Fn logbl -routines conform to -.St -isoC-99 . -The latter three -implement the logb function recommended by -.St -ieee754 . -.Sh HISTORY -.Bl -tag -width "Function " -compact -.It Em Function -.Em "First Appeared In" -.It Fn logb -.Bx 4.3 -.It Fn ilogb -.Fx 1.1.5 -.It Fn ilogbf -.Fx 2.0 -.It Fn logbf -.Fx 2.0 -.It Fn ilogbl -.Fx 5.4 -.It Fn logbl -.Fx 8.0 -.El diff --git a/man/j0.3 b/man/j0.3 deleted file mode 100644 index f280e7d..0000000 --- a/man/j0.3 +++ /dev/null @@ -1,169 +0,0 @@ -.\" Copyright (c) 1985, 1991 Regents of the University of California. -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" from: @(#)j0.3 6.7 (Berkeley) 4/19/91 -.\" $FreeBSD: src/lib/msun/man/j0.3,v 1.15 2008/02/18 19:02:49 das Exp $ -.\" -.Dd February 18, 2008 -.Dt J0 3 -.Os -.Sh NAME -.Nm j0 , -.Nm j0f , -.Nm j1 , -.Nm j1f , -.Nm jn , -.Nm jnf , -.Nm y0 , -.Nm y0f , -.Nm y1 , -.Nm y1f , -.Nm yn , -.Nm ynf -.Nd Bessel functions of first and second kind -.Sh LIBRARY -.Lb libm -.Sh SYNOPSIS -.In math.h -.Ft double -.Fn j0 "double x" -.Ft float -.Fn j0f "float x" -.Ft double -.Fn j1 "double x" -.Ft float -.Fn j1f "float x" -.Ft double -.Fn jn "int n" "double x" -.Ft float -.Fn jnf "int n" "float x" -.Ft double -.Fn y0 "double x" -.Ft float -.Fn y0f "float x" -.Ft double -.Fn y1 "double x" -.Ft float -.Fn y1f "float x" -.Ft double -.Fn yn "int n" "double x" -.Ft float -.Fn ynf "int n" "float x" -.Sh DESCRIPTION -The functions -.Fn j0 , -.Fn j0f , -.Fn j1 -and -.Fn j1f -compute the -.Em Bessel function of the first kind of the order -0 and the -.Em order -1, respectively, -for the -real value -.Fa x ; -the functions -.Fn jn -and -.Fn jnf -compute the -.Em Bessel function of the first kind of the integer -.Em order -.Fa n -for the real value -.Fa x . -.Pp -The functions -.Fn y0 , -.Fn y0f , -.Fn y1 , -and -.Fn y1f -compute the linearly independent -.Em Bessel function of the second kind of the order -0 and the -.Em order -1, respectively, -for the -positive -.Em real -value -.Fa x ; -the functions -.Fn yn -and -.Fn ynf -compute the -.Em Bessel function of the second kind for the integer -.Em order -.Fa n -for the positive -.Em real -value -.Fa x . -.Sh RETURN VALUES -These routines return values of their respective Bessel functions. -For large positive inputs, they may underflow and return \*(Pm0. -.Pp -The following applies to -.Fn y0 , -.Fn y0f , -.Fn y1 , -.Fn y1f , -.Fn yn , -and -.Fn ynf . -If -.Fa x -is negative, these routines will generate an invalid exception and -return \*(Na. -If -.Fa x -is 0 or a sufficiently small positive number, these routines -will generate an overflow exception and return -\*(If. -.Sh SEE ALSO -.Xr math 3 -.Sh STANDARDS -The -.Fn j0 , -.Fn j1 , -.Fn jn , -.Fn y0 , -.Fn y1 , -and -.Fn yn -functions conform to -.St -p1003.1-2001 . -The -.Ft float -versions are extensions. -.Sh HISTORY -This set of functions -appeared in -.At v7 . diff --git a/man/lgamma.3 b/man/lgamma.3 deleted file mode 100644 index 54677f5..0000000 --- a/man/lgamma.3 +++ /dev/null @@ -1,189 +0,0 @@ -.\" Copyright (c) 1985, 1991 Regents of the University of California. -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" from: @(#)lgamma.3 6.6 (Berkeley) 12/3/92 -.\" $FreeBSD: src/lib/msun/man/lgamma.3,v 1.24 2008/02/18 17:27:11 das Exp $ -.\" -.Dd January 14, 2005 -.Dt LGAMMA 3 -.Os -.Sh NAME -.Nm lgamma , -.Nm lgamma_r , -.Nm lgammaf , -.Nm lgammaf_r , -.Nm gamma , -.Nm gamma_r , -.Nm gammaf , -.Nm gammaf_r , -.Nm tgamma , -.Nm tgammaf -.Nd log gamma functions, gamma function -.Sh LIBRARY -.Lb libm -.Sh SYNOPSIS -.In math.h -.Ft extern int -.Fa signgam ; -.sp -.Ft double -.Fn lgamma "double x" -.Ft double -.Fn lgamma_r "double x" "int *signgamp" -.Ft float -.Fn lgammaf "float x" -.Ft float -.Fn lgammaf_r "float x" "int *signgamp" -.Ft double -.Fn gamma "double x" -.Ft double -.Fn gamma_r "double x" "int *signgamp" -.Ft float -.Fn gammaf "float x" -.Ft float -.Fn gammaf_r "float x" "int *signgamp" -.Ft double -.Fn tgamma "double x" -.Ft float -.Fn tgammaf "float x" -.Sh DESCRIPTION -.Fn lgamma x -and -.Fn lgammaf x -.if t \{\ -return ln\||\(*G(x)| where -.Bd -unfilled -offset indent -\(*G(x) = \(is\d\s8\z0\s10\u\u\s8\(if\s10\d t\u\s8x\-1\s10\d e\u\s8\-t\s10\d dt for x > 0 and -\(*G(x) = \(*p/(\(*G(1\-x)\|sin(\(*px)) for x < 1. -.Ed -.\} -.if n \ -return ln\||\(*G(x)|. -The external integer -.Fa signgam -returns the sign of \(*G(x). -.Pp -.Fn lgamma_r x signgamp -and -.Fn lgammaf_r x signgamp -provide the same functionality as -.Fn lgamma x -and -.Fn lgammaf x -but the caller must provide an integer to store the sign of \(*G(x). -.Pp -The -.Fn tgamma x -and -.Fn tgammaf x -functions return \(*G(x), with no effect on -.Fa signgam . -.Pp -.Fn gamma , -.Fn gammaf , -.Fn gamma_r , -and -.Fn gammaf_r -are deprecated aliases for -.Fn lgamma , -.Fn lgammaf , -.Fn lgamma_r , -and -.Fn lgammaf_r , -respectively. -.Sh IDIOSYNCRASIES -Do not use the expression -.Dq Li signgam\(**exp(lgamma(x)) -to compute g := \(*G(x). -Instead use a program like this (in C): -.Bd -literal -offset indent -lg = lgamma(x); g = signgam\(**exp(lg); -.Ed -.Pp -Only after -.Fn lgamma -or -.Fn lgammaf -has returned can signgam be correct. -.Pp -For arguments in its range, -.Fn tgamma -is preferred, as for positive arguments -it is accurate to within one unit in the last place. -Exponentiation of -.Fn lgamma -will lose up to 10 significant bits. -.Sh RETURN VALUES -.Fn gamma , -.Fn gamma_r , -.Fn gammaf , -.Fn gammaf_r , -.Fn lgamma , -.Fn lgamma_r , -.Fn lgammaf , -and -.Fn lgammaf_r -return appropriate values unless an argument is out of range. -Overflow will occur for sufficiently large positive values, and -non-positive integers. -For large non-integer negative values, -.Fn tgamma -will underflow. -.Sh SEE ALSO -.Xr math 3 -.Sh STANDARDS -The -.Fn lgamma , -.Fn lgammaf , -.Fn tgamma , -and -.Fn tgammaf -functions are expected to conform to -.St -isoC-99 . -.Sh HISTORY -The -.Fn lgamma -function appeared in -.Bx 4.3 . -The -.Fn gamma -function appeared in -.Bx 4.4 -as a function which computed \(*G(x). -This version was used in -.Fx 1.1 . -The name -.Fn gamma -was originally dedicated to the -.Fn lgamma -function, -and that usage was restored by switching to Sun's fdlibm in -.Fx 1.1.5 . -The -.Fn tgamma -function appeared in -.Fx 5.0 . diff --git a/man/log.3 b/man/log.3 deleted file mode 100644 index 8143963..0000000 --- a/man/log.3 +++ /dev/null @@ -1,118 +0,0 @@ -.\" Copyright (c) 2008-2010 David Schultz -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" $FreeBSD: src/lib/msun/man/log.3,v 1.2 2010/12/05 22:11:22 das Exp $ -.\" -.Dd December 5, 2010 -.Dt LOG 3 -.Os -.Sh NAME -.Nm log , -.Nm logf , -.Nm logl , -.Nm log10 , -.Nm log10f , -.Nm log2 , -.Nm log2f , -.Nm log1p , -.Nm log1pf -.Nd logarithm functions -.Sh LIBRARY -.Lb libm -.Sh SYNOPSIS -.In math.h -.Ft double -.Fn log "double x" -.Ft float -.Fn logf "float x" -.Ft double -.Fn log10 "double x" -.Ft float -.Fn log10f "float x" -.Ft double -.Fn log2 "double x" -.Ft float -.Fn log2f "float x" -.Ft double -.Fn log1p "double x" -.Ft float -.Fn log1pf "float x" -.Sh DESCRIPTION -The -.Fn log -and -.Fn logf -functions compute the natural logarithm of -.Fa x . -.Pp -The -.Fn log10 -and -.Fn log10f -functions compute the logarithm base 10 of -.Fa x , -while -.Fn log2 -and -.Fn log2f -compute the logarithm base 2 of -.Fa x . -.Pp -The -.Fn log1p -and -.Fn log1pf -functions compute the natural logarithm of -.No "1 + x" . -Computing the natural logarithm as -.Li log1p(x) -is more accurate than computing it as -.Li log(1 + x) -when -.Fa x -is close to zero. -.Sh RETURN VALUES -These functions return the requested logarithm; the logarithm of 1 is +0. -An attempt to take the logarithm of \*(Pm0 results in a divide-by-zero -exception, and -\*(If is returned. -Otherwise, attempting to take the logarithm of a negative number -results in an invalid exception and a return value of \*(Na. -.Sh SEE ALSO -.Xr exp 3 , -.Xr ilogb 3 , -.Xr math 3 , -.Xr pow 3 -.Sh STANDARDS -The -.Fn log , -.Fn logf , -.Fn log10 , -.Fn log10f , -.Fn log2 , -.Fn log2f , -.Fn log1p , -and -.Fn log1pf -functions conform to -.St -isoC-99 . diff --git a/man/lrint.3 b/man/lrint.3 deleted file mode 100644 index f896d52..0000000 --- a/man/lrint.3 +++ /dev/null @@ -1,104 +0,0 @@ -.\" Copyright (c) 2005 David Schultz -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" $FreeBSD: src/lib/msun/man/lrint.3,v 1.3 2008/01/14 02:12:07 das Exp $ -.\" -.Dd January 13, 2008 -.Dt LRINT 3 -.Os -.Sh NAME -.Nm llrint , -.Nm llrintf , -.Nm llrintl , -.Nm lrint , -.Nm lrintf , -.Nm lrintl -.Nd "convert to integer" -.Sh LIBRARY -.Lb libm -.Sh SYNOPSIS -.In math.h -.Ft "long long" -.Fn llrint "double x" -.Ft "long long" -.Fn llrintf "float x" -.Ft "long long" -.Fn llrintl "long double x" -.Ft long -.Fn lrint "double x" -.Ft long -.Fn lrintf "float x" -.Ft long -.Fn lrintl "long double x" -.Sh DESCRIPTION -The -.Fn lrint -function returns the integer nearest to its argument -.Fa x -according to the current rounding mode. -If the rounded result is too large to be represented as a -.Vt long -value, an invalid exception is raised and the return value is undefined. -Otherwise, if -.Fa x -is not an integer, -.Fn lrint -raises an inexact exception. -When the rounded result is representable as a -.Vt long , -the expression -.Fn lrint x -is equivalent to -.Po Vt long Pc Ns Fn rint x -(although the former may be more efficient). -.Pp -The -.Fn llrint , -.Fn llrintf , -.Fn llrintl , -.Fn lrintf , -and -.Fn lrintl -functions differ from -.Fn lrint -only in their input and output types. -.Sh SEE ALSO -.Xr lround 3 , -.Xr math 3 , -.Xr rint 3 , -.Xr round 3 -.Sh STANDARDS -These functions conform to -.St -isoC-99 . -.Sh HISTORY -The -.Fn llrint , -.Fn llrintf , -.Fn lrint , -and -.Fn lrintf -routines first appeared in -.Fx 5.4 . -The long double variants were introduced in -.Fx 8.0 . diff --git a/man/lround.3 b/man/lround.3 deleted file mode 100644 index d3e53c2..0000000 --- a/man/lround.3 +++ /dev/null @@ -1,112 +0,0 @@ -.\" Copyright (c) 2005 David Schultz -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" $FreeBSD: src/lib/msun/man/lround.3,v 1.4 2005/06/15 19:04:04 ru Exp $ -.\" -.Dd April 7, 2005 -.Dt LROUND 3 -.Os -.Sh NAME -.Nm llround , -.Nm llroundf , -.Nm llroundl , -.Nm lround , -.Nm lroundf , -.Nm lroundl -.Nd "convert to nearest integral value" -.Sh LIBRARY -.Lb libm -.Sh SYNOPSIS -.In math.h -.Ft "long long" -.Fn llround "double x" -.Ft "long long" -.Fn llroundf "float x" -.Ft "long long" -.Fn llroundl "long double x" -.Ft long -.Fn lround "double x" -.Ft long -.Fn lroundf "float x" -.Ft long -.Fn lroundl "long double x" -.Sh DESCRIPTION -The -.Fn lround -function returns the integer nearest to its argument -.Fa x , -rounding away from zero in halfway cases. -If the rounded result is too large to be represented as a -.Vt long -value, an invalid exception is raised and the return value is undefined. -Otherwise, if -.Fa x -is not an integer, -.Fn lround -may raise an inexact exception. -When the rounded result is representable as a -.Vt long , -the expression -.Fn lround x -is equivalent to -.Po Vt long Pc Ns Fn round x -(although the former may be more efficient). -.Pp -The -.Fn llround , -.Fn llroundf , -.Fn llroundl , -.Fn lroundf -and -.Fn lroundl -functions differ from -.Fn lround -only in their input and output types. -.Sh SEE ALSO -.Xr lrint 3 , -.Xr math 3 , -.Xr rint 3 , -.Xr round 3 -.Sh STANDARDS -The -.Fn llround , -.Fn llroundf , -.Fn llroundl , -.Fn lround , -.Fn lroundf , -and -.Fn lroundl -functions conform to -.St -isoC-99 . -.Sh HISTORY -The -.Vt float -and -.Vt double -versions of these routines first appeared in -.Fx 5.4 . -The -.Vt "long double" -versions appeared in -.Fx 6.0 . diff --git a/man/math.3 b/man/math.3 deleted file mode 100644 index 5ca2091..0000000 --- a/man/math.3 +++ /dev/null @@ -1,254 +0,0 @@ -.\" Copyright (c) 1985 Regents of the University of California. -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" from: @(#)math.3 6.10 (Berkeley) 5/6/91 -.\" $FreeBSD: src/lib/msun/man/math.3,v 1.34 2011/10/17 06:10:32 das Exp $ -.\" -.Dd December 5, 2010 -.Dt MATH 3 -.Os -.Sh NAME -.Nm math -.Nd "floating-point mathematical library" -.Sh LIBRARY -.Lb libm -.Sh SYNOPSIS -.In math.h -.Sh DESCRIPTION -The math library includes the following components: -.Bl -column "" "polymorphic (type-generic) versions of functions" -compact -offset indent -.In math.h Ta basic routines and real-valued functions -.In complex.h Ta complex number support -.In tgmath.h Ta polymorphic (type-generic) versions of functions -.In fenv.h Ta routines to control rounding and exceptions -.El -The rest of this manual page describes the functions provided by -.In math.h . -Please consult -.Xr complex 3 , -.Xr tgmath 3 , -and -.Xr fenv 3 -for information on the other components. -.Sh "LIST OF FUNCTIONS" -Each of the following -.Vt double -functions has a -.Vt float -counterpart with an -.Ql f -appended to the name and a -.Vt "long double" -counterpart with an -.Ql l -appended. -As an example, the -.Vt float -and -.Vt "long double" -counterparts of -.Ft double -.Fn acos "double x" -are -.Ft float -.Fn acosf "float x" -and -.Ft "long double" -.Fn acosl "long double x" , -respectively. -The classification macros and silent order predicates are type generic and -should not be suffixed with -.Ql f -or -.Ql l . -.de Cl -.Bl -column "isgreaterequal" "bessel function of the second kind of the order 0" -.Em "Name Description" -.. -.Ss Algebraic Functions -.Cl -cbrt cube root -fma fused multiply-add -hypot Euclidean distance -sqrt square root -.El -.Ss Classification Macros -.Cl -fpclassify classify a floating-point value -isfinite determine whether a value is finite -isinf determine whether a value is infinite -isnan determine whether a value is \*(Na -isnormal determine whether a value is normalized -.El -.Ss Exponent Manipulation Functions -.Cl -frexp extract exponent and mantissa -ilogb extract exponent -ldexp multiply by power of 2 -logb extract exponent -scalbln adjust exponent -scalbn adjust exponent -.El -.Ss Extremum- and Sign-Related Functions -.Cl -copysign copy sign bit -fabs absolute value -fdim positive difference -fmax maximum function -fmin minimum function -signbit extract sign bit -.El -.Ss Not a Number Functions -.Cl -nan generate a quiet \*(Na -.El -.Ss Residue and Rounding Functions -.Cl -ceil integer no less than -floor integer no greater than -fmod positive remainder -llrint round to integer in fixed-point format -llround round to nearest integer in fixed-point format -lrint round to integer in fixed-point format -lround round to nearest integer in fixed-point format -modf extract integer and fractional parts -nearbyint round to integer (silent) -nextafter next representable value -nexttoward next representable value -remainder remainder -remquo remainder with partial quotient -rint round to integer -round round to nearest integer -trunc integer no greater in magnitude than -.El -.Pp -The -.Fn ceil , -.Fn floor , -.Fn llround , -.Fn lround , -.Fn round , -and -.Fn trunc -functions round in predetermined directions, whereas -.Fn llrint , -.Fn lrint , -and -.Fn rint -round according to the current (dynamic) rounding mode. -For more information on controlling the dynamic rounding mode, see -.Xr fenv 3 -and -.Xr fesetround 3 . -.Ss Silent Order Predicates -.Cl -isgreater greater than relation -isgreaterequal greater than or equal to relation -isless less than relation -islessequal less than or equal to relation -islessgreater less than or greater than relation -isunordered unordered relation -.El -.Ss Transcendental Functions -.Cl -acos inverse cosine -acosh inverse hyperbolic cosine -asin inverse sine -asinh inverse hyperbolic sine -atan inverse tangent -atanh inverse hyperbolic tangent -atan2 atan(y/x); complex argument -cos cosine -cosh hyperbolic cosine -erf error function -erfc complementary error function -exp exponential base e -exp2 exponential base 2 -expm1 exp(x)\-1 -j0 Bessel function of the first kind of the order 0 -j1 Bessel function of the first kind of the order 1 -jn Bessel function of the first kind of the order n -lgamma log gamma function -log natural logarithm -log10 logarithm to base 10 -log1p log(1+x) -log2 base 2 logarithm -pow exponential x**y -sin trigonometric function -sinh hyperbolic function -tan trigonometric function -tanh hyperbolic function -tgamma gamma function -y0 Bessel function of the second kind of the order 0 -y1 Bessel function of the second kind of the order 1 -yn Bessel function of the second kind of the order n -.El -.Pp -The routines -in this section might not produce a result that is correctly rounded, -so reproducible results cannot be guaranteed across platforms. -For most of these functions, however, incorrect rounding occurs -rarely, and then only in very-close-to-halfway cases. -.Sh SEE ALSO -.Xr complex 3 , -.Xr fenv 3 , -.Xr ieee 3 , -.Xr tgmath 3 -.Sh HISTORY -A math library with many of the present functions appeared in -.At v7 . -The library was substantially rewritten for -.Bx 4.3 -to provide -better accuracy and speed on machines supporting either VAX -or IEEE 754 floating-point. -Most of this library was replaced with FDLIBM, developed at Sun -Microsystems, in -.Fx 1.1.5 . -Additional routines, including ones for -.Vt float -and -.Vt long double -values, were written for or imported into subsequent versions of FreeBSD. -.Sh BUGS -Some of the -.Vt "long double" -math functions in -.St -isoC-99 -are not available. -.Pp -Many of the routines to compute transcendental functions produce -inaccurate results in other than the default rounding mode. -.Pp -On the i386 platform, trigonometric argument reduction is not -performed accurately for huge arguments, resulting in -large errors -for such arguments to -.Fn cos , -.Fn sin , -and -.Fn tan . diff --git a/man/nan.3 b/man/nan.3 deleted file mode 100644 index bfbc0eb..0000000 --- a/man/nan.3 +++ /dev/null @@ -1,99 +0,0 @@ -.\" Copyright (c) 2007 David Schultz -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" $FreeBSD: src/lib/msun/man/nan.3,v 1.1 2007/12/16 21:19:28 das Exp $ -.\" -.Dd December 16, 2007 -.Dt NAN 3 -.Os -.Sh NAME -.Nm nan , -.Nm nanf , -.Nm nanl -.Nd quiet \*(Nas -.Sh LIBRARY -.Lb libm -.Sh SYNOPSIS -.In math.h -.Ft double -.Fn nan "const char *s" -.Ft float -.Fn nanf "const char *s" -.Ft long double -.Fn nanl "const char *s" -.Sh DESCRIPTION -The -.Dv NAN -macro expands to a quiet \*(Na (Not A Number). -Similarly, each of the -.Fn nan , -.Fn nanf , -and -.Fn nanl -functions generate a quiet \*(Na value without raising an invalid exception. -The argument -.Fa s -should point to either an empty string or a hexadecimal representation -of a non-negative integer (e.g., "0x1234".) -In the latter case, the integer is encoded in some free bits in the -representation of the \*(Na, which sometimes store -machine-specific information about why a particular \*(Na was generated. -There are 22 such bits available for -.Vt float -variables, 51 bits for -.Vt double -variables, and at least 51 bits for a -.Vt long double . -If -.Fa s -is improperly formatted or represents an integer that is too large, -then the particular encoding of the quiet \*(Na that is returned -is indeterminate. -.Sh COMPATIBILITY -Calling these functions with a non-empty string isn't portable. -Another operating system may translate the string into a different -\*(Na encoding, and furthermore, the meaning of a given \*(Na encoding -varies across machine architectures. -If you understood the innards of a particular platform well enough to -know what string to use, then you would have no need for these functions -anyway, so don't use them. -Use the -.Dv NAN -macro instead. -.Sh SEE ALSO -.Xr fenv 3 , -.Xr ieee 3 , -.Xr isnan 3 , -.Xr math 3 , -.Xr strtod 3 -.Sh STANDARDS -The -.Fn nan , -.Fn nanf , -and -.Fn nanl -functions and the -.Dv NAN -macro conform to -.St -isoC-99 . diff --git a/man/nextafter.3 b/man/nextafter.3 deleted file mode 100644 index 830d8f6..0000000 --- a/man/nextafter.3 +++ /dev/null @@ -1,96 +0,0 @@ -.\" Copyright (c) 1985, 1991 Regents of the University of California. -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" from: @(#)ieee.3 6.4 (Berkeley) 5/6/91 -.\" $FreeBSD: src/lib/msun/man/nextafter.3,v 1.3 2007/01/09 01:02:06 imp Exp $ -.\" -.Dd May 4, 2005 -.Dt NEXTAFTER 3 -.Os -.Sh NAME -.Nm nextafter , -.Nm nextafterf , -.Nm nextafterl , -.Nm nexttoward , -.Nm nexttowardf , -.Nm nexttowardl -.Nd next representable value -.Sh LIBRARY -.Lb libm -.Sh SYNOPSIS -.In math.h -.Ft double -.Fn nextafter "double x" "double y" -.Ft float -.Fn nextafterf "float x" "float y" -.Ft long double -.Fn nextafterl "long double x" "long double y" -.Ft double -.Fn nexttoward "double x" "long double y" -.Ft float -.Fn nexttowardf "float x" "long double y" -.Ft long double -.Fn nexttowardl "long double x" "long double y" -.Sh DESCRIPTION -These functions -return the next machine representable number from -.Fa x -in direction -.Fa y . -.Sh SEE ALSO -.Xr ieee 3 , -.Xr math 3 -.Sh STANDARDS -The -.Fn nextafter , -.Fn nextafterf , -.Fn nextafterl , -.Fn nexttoward , -.Fn nexttowardf , -and -.Fn nexttowardl -routines conform to -.St -isoC-99 . -They implement the Nextafter function recommended by -.St -ieee754 , -with the extension that -.Fn nextafter +0.0, -0.0 -returns -.Li -0.0 , -and -.Fn nextafter -0.0, +0.0 -returns -.Li +0.0 . -.Sh HISTORY -The -.Fn nextafter -function appeared in -.Bx 4.3 , -and -.Fn nextafterf -appeared in -.Fx 2.0 . diff --git a/man/remainder.3 b/man/remainder.3 deleted file mode 100644 index 15aa0da..0000000 --- a/man/remainder.3 +++ /dev/null @@ -1,159 +0,0 @@ -.\" Copyright (c) 1985, 1991 Regents of the University of California. -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" from: @(#)ieee.3 6.4 (Berkeley) 5/6/91 -.\" $FreeBSD: src/lib/msun/man/remainder.3,v 1.7 2010/06/02 10:20:38 uqs Exp $ -.\" -.Dd March 30, 2008 -.Dt REMAINDER 3 -.Os -.Sh NAME -.Nm remainder , -.Nm remainderf , -.Nm remainderl , -.Nm remquo , -.Nm remquof , -.Nm remquol -.Nd minimal residue functions -.Sh LIBRARY -.Lb libm -.Sh SYNOPSIS -.In math.h -.Ft double -.Fn remainder "double x" "double y" -.Ft float -.Fn remainderf "float x" "float y" -.Ft long double -.Fn remainderl "long double x" "long double y" -.Ft double -.Fn remquo "double x" "double y" "int *quo" -.Ft float -.Fn remquof "float x" "float y" "int *quo" -.Ft long double -.Fn remquol "long double x" "long double y" "int *quo" -.Sh DESCRIPTION -.Fn remainder , -.Fn remainderf , -.Fn remainderl , -.Fn remquo , -.Fn remquof , -and -.Fn remquol -return the remainder -.Fa r -:= -.Fa x -\- -.Fa n\(**y -where -.Fa n -is the integer nearest the exact value of -.Bk -words -.Fa x Ns / Ns Fa y ; -.Ek -moreover if -.Pf \*(Ba Fa n -\- -.Sm off -.Fa x No / Fa y No \*(Ba -.Sm on -= -1/2 -then -.Fa n -is even. -Consequently -the remainder is computed exactly and -.Sm off -.Pf \*(Ba Fa r No \*(Ba -.Sm on -\*(Le -.Sm off -.Pf \*(Ba Fa y No \*(Ba/2 . -.Sm on -But attempting to take the remainder when -.Fa y -is 0 or -.Fa x -is \*(Pm\*(If is an invalid operation that produces a \*(Na. -.Pp -The -.Fn remquo , -.Fn remquof , -and -.Fn remquol -functions also store the last -.Va k -bits of -.Fa n -in the location pointed to by -.Fa quo , -provided that -.Fa n -exists. -The number of bits -.Va k -is platform-specific, but is guaranteed to be at least 3. -.Sh SEE ALSO -.Xr fmod 3 , -.Xr ieee 3 , -.Xr math 3 -.Sh STANDARDS -The -.Fn remainder , -.Fn remainderf , -.Fn remainderl , -.Fn remquo , -.Fn remquof , -and -.Fn remquol -routines conform to -.St -isoC-99 . -The remainder is as defined in -.St -ieee754 . -.Sh HISTORY -The -.Fn remainder -and -.Fn remainderf -functions appeared in -.Bx 4.3 -and -.Fx 2.0 , -respectively. -The -.Fn remquo -and -.Fn remquof -functions were added in -.Fx 6.0 , -and -.Fn remainderl -and -.Fn remquol -were added in -.Fx 8.0 . diff --git a/man/rint.3 b/man/rint.3 deleted file mode 100644 index febff19..0000000 --- a/man/rint.3 +++ /dev/null @@ -1,103 +0,0 @@ -.\" Copyright (c) 1985, 1991 Regents of the University of California. -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" from: @(#)rint.3 5.1 (Berkeley) 5/2/91 -.\" $FreeBSD: src/lib/msun/man/rint.3,v 1.13 2008/01/14 02:12:07 das Exp $ -.\" -.Dd January 13, 2008 -.Dt RINT 3 -.Os -.Sh NAME -.Nm nearbyint , -.Nm nearbyintf , -.Nm nearbyintl , -.Nm rint , -.Nm rintf , -.Nm rintl -.Nd round to integral value in floating-point format -.Sh LIBRARY -.Lb libm -.Sh SYNOPSIS -.In math.h -.Ft double -.Fn nearbyint "double x" -.Ft float -.Fn nearbyintf "float x" -.Ft long double -.Fn nearbyintl "long double x" -.Ft double -.Fn rint "double x" -.Ft float -.Fn rintf "float x" -.Ft long double -.Fn rintl "long double x" -.Sh DESCRIPTION -The -.Fn rint , -.Fn rintf , -and -.Fn rintl -functions return the integral value nearest to -.Fa x -according to the prevailing rounding mode. -These functions raise an inexact exception when the original argument -is not an exact integer. -.Pp -The -.Fn nearbyint , -.Fn nearbyintf , -and -.Fn nearbyintl -functions perform the same operation, except that they do not raise -an inexact exception. -.Sh SEE ALSO -.Xr abs 3 , -.Xr ceil 3 , -.Xr fabs 3 , -.Xr fenv 3 , -.Xr floor 3 , -.Xr ieee 3 , -.Xr lrint 3 , -.Xr lround 3 , -.Xr math 3 , -.Xr round 3 -.Sh STANDARDS -These functions conform to -.St -isoC-99 . -.Sh HISTORY -A -.Fn rint -function appeared in -.At v6 . -The -.Fn nearbyint -and -.Fn nearbyintf -functions appeared in -.Fx 5.3 , -and the long double variants were first available in -.Fx 8.0 . diff --git a/man/round.3 b/man/round.3 deleted file mode 100644 index b077d77..0000000 --- a/man/round.3 +++ /dev/null @@ -1,80 +0,0 @@ -.\" Copyright (c) 2003, Steven G. Kargl -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" $FreeBSD: src/lib/msun/man/round.3,v 1.6 2005/06/15 19:04:04 ru Exp $ -.\" -.Dd April 7, 2005 -.Dt ROUND 3 -.Os -.Sh NAME -.Nm round , -.Nm roundf , -.Nm roundl -.Nd round to nearest integral value -.Sh LIBRARY -.Lb libm -.Sh SYNOPSIS -.In math.h -.Ft double -.Fn round "double x" -.Ft float -.Fn roundf "float x" -.Ft "long double" -.Fn roundl "long double x" -.Sh DESCRIPTION -The -.Fn round , -.Fn roundf , -and -.Fn roundl -functions return the nearest integral value to -.Fa x ; -if -.Fa x -lies halfway between two integral values, then these -functions return the integral value with the larger -absolute value (i.e., they round away from zero). -.Sh SEE ALSO -.Xr ceil 3 , -.Xr floor 3 , -.Xr ieee 3 , -.Xr lrint 3 , -.Xr lround 3 , -.Xr math 3 , -.Xr rint 3 , -.Xr trunc 3 -.Sh STANDARDS -These functions conform to -.St -isoC-99 . -.Sh HISTORY -The -.Fn round -and -.Fn roundf -functions appeared in -.Fx 5.3 . -The -.Fn roundl -function appeared in -.Fx 6.0 . diff --git a/man/scalbn.3 b/man/scalbn.3 deleted file mode 100644 index e091da7..0000000 --- a/man/scalbn.3 +++ /dev/null @@ -1,91 +0,0 @@ -.\" Copyright (c) 1985, 1991 Regents of the University of California. -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" from: @(#)ieee.3 6.4 (Berkeley) 5/6/91 -.\" $FreeBSD: src/lib/msun/man/scalbn.3,v 1.4 2007/01/09 01:02:06 imp Exp $ -.\" -.Dd March 4, 2005 -.Dt SCALBN 3 -.Os -.Sh NAME -.Nm scalbln , -.Nm scalblnf , -.Nm scalblnl , -.Nm scalbn , -.Nm scalbnf , -.Nm scalbnl -.Nd adjust exponent -.Sh LIBRARY -.Lb libm -.Sh SYNOPSIS -.In math.h -.Ft double -.Fn scalbln "double x" "long n" -.Ft float -.Fn scalblnf "float x" "long n" -.Ft long double -.Fn scalblnl "long double x" "long n" -.Ft double -.Fn scalbn "double x" "int n" -.Ft float -.Fn scalbnf "float x" "int n" -.Ft long double -.Fn scalbnl "long double x" "int n" -.Sh DESCRIPTION -These routines return -.Fa x Ns \(**(2** Ns Fa n ) -computed by exponent manipulation. -.Sh SEE ALSO -.Xr ieee 3 , -.Xr math 3 -.Sh STANDARDS -These routines conform to -.St -isoC-99 , -and they implement the Scalb function recommended by -.St -ieee754 . -.Sh HISTORY -The -.Fn scalbn -and -.Fn scalbnf -functions appeared in -.Bx 4.3 -and -.Fx 2.0 , -respectively. -The -.Fn scalbln -and -.Fn scalblnf -functions first appeared in -.Fx 5.3 , -and -.Fn scalblnl -and -.Fn scalbln -in -.Fx 6.0 . diff --git a/man/signbit.3 b/man/signbit.3 deleted file mode 100644 index b749671..0000000 --- a/man/signbit.3 +++ /dev/null @@ -1,57 +0,0 @@ -.\" Copyright (c) 2003 Mike Barcroft -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" $FreeBSD: src/lib/msun/man/signbit.3,v 1.1 2004/07/19 08:16:10 das Exp $ -.\" -.Dd July 18, 2004 -.Dt SIGNBIT 3 -.Os -.Sh NAME -.Nm signbit -.Nd "determine whether a floating-point number's sign is negative" -.Sh LIBRARY -.Lb libm -.Sh SYNOPSIS -.In math.h -.Ft int -.Fn signbit "real-floating x" -.Sh DESCRIPTION -The -.Fn signbit -macro takes an argument of -.Fa x -and returns non-zero if the value of its sign is negative, otherwise 0. -.Sh SEE ALSO -.Xr fpclassify 3 , -.Xr math 3 -.Sh STANDARDS -The -.Fn signbit -macro conforms to -.St -isoC-99 . -.Sh HISTORY -The -.Fn signbit -macro was added in -.Fx 5.1 . diff --git a/man/sin.3 b/man/sin.3 deleted file mode 100644 index ac26c30..0000000 --- a/man/sin.3 +++ /dev/null @@ -1,82 +0,0 @@ -.\" Copyright (c) 1991 The Regents of the University of California. -.\" All rights reserved. -.\" -.\" @(#)sin.3 6.7 (Berkeley) 4/19/91 -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" from: @(#)sin.3 6.7 (Berkeley) 4/19/91 -.\" $FreeBSD: src/lib/msun/man/sin.3,v 1.12 2011/10/17 05:41:03 das Exp $ -.\" -.Dd January 24, 2008 -.Dt SIN 3 -.Os -.Sh NAME -.Nm sin , -.Nm sinf , -.Nm sinl -.Nd sine functions -.Sh LIBRARY -.Lb libm -.Sh SYNOPSIS -.In math.h -.Ft double -.Fn sin "double x" -.Ft float -.Fn sinf "float x" -.Ft long double -.Fn sinl "long double x" -.Sh DESCRIPTION -The -.Fn sin , -.Fn sinf , -and -.Fn sinl -functions compute the sine of -.Fa x -(measured in radians). -A large magnitude argument may yield a result with little -or no significance. -.Sh RETURN VALUES -The -.Fn sin , -.Fn sinf , -and -.Fn sinl -functions return the sine value. -.Sh SEE ALSO -.Xr acos 3 , -.Xr asin 3 , -.Xr atan 3 , -.Xr atan2 3 , -.Xr csin 3 , -.Xr cos 3 , -.Xr cosh 3 , -.Xr math 3 , -.Xr sinh 3 , -.Xr tan 3 , -.Xr tanh 3 -.Sh STANDARDS -These functions conform to -.St -isoC-99 . diff --git a/man/sinh.3 b/man/sinh.3 deleted file mode 100644 index 21923e5..0000000 --- a/man/sinh.3 +++ /dev/null @@ -1,68 +0,0 @@ -.\" Copyright (c) 1991 The Regents of the University of California. -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" from: @(#)sinh.3 6.6 (Berkeley) 4/19/91 -.\" $FreeBSD: src/lib/msun/man/sinh.3,v 1.14 2011/10/17 05:41:03 das Exp $ -.Dd January 14, 2005 -.Dt SINH 3 -.Os -.Sh NAME -.Nm sinh , -.Nm sinhf -.Nd hyperbolic sine function -.Sh LIBRARY -.Lb libm -.Sh SYNOPSIS -.In math.h -.Ft double -.Fn sinh "double x" -.Ft float -.Fn sinhf "float x" -.Sh DESCRIPTION -The -.Fn sinh -and the -.Fn sinhf -functions compute the hyperbolic sine of -.Fa x . -.Sh SEE ALSO -.Xr acos 3 , -.Xr asin 3 , -.Xr atan 3 , -.Xr atan2 3 , -.Xr cos 3 , -.Xr cosh 3 , -.Xr csinh 3 , -.Xr math 3 , -.Xr sin 3 , -.Xr tan 3 , -.Xr tanh 3 -.Sh STANDARDS -The -.Fn sinh -function conforms to -.St -isoC . diff --git a/man/sqrt.3 b/man/sqrt.3 deleted file mode 100644 index 2b17b76..0000000 --- a/man/sqrt.3 +++ /dev/null @@ -1,122 +0,0 @@ -.\" Copyright (c) 1985, 1991 Regents of the University of California. -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" from: @(#)sqrt.3 6.4 (Berkeley) 5/6/91 -.\" $FreeBSD: src/lib/msun/man/sqrt.3,v 1.16 2011/03/12 16:50:39 kargl Exp $ -.\" -.Dd March 5, 2011 -.Dt SQRT 3 -.Os -.Sh NAME -.Nm cbrt , -.Nm cbrtf , -.Nm cbrtl , -.Nm sqrt , -.Nm sqrtf , -.Nm sqrtl -.Nd cube root and square root functions -.Sh LIBRARY -.Lb libm -.Sh SYNOPSIS -.In math.h -.Ft double -.Fn cbrt "double x" -.Ft float -.Fn cbrtf "float x" -.Ft long double -.Fn cbrtl "long double x" -.Ft double -.Fn sqrt "double x" -.Ft float -.Fn sqrtf "float x" -.Ft long double -.Fn sqrtl "long double x" -.Sh DESCRIPTION -The -.Fn cbrt , -.Fn cbrtf , -and -.Fn cbrtl -functions compute -the cube root of -.Ar x . -.Pp -The -.Fn sqrt , -.Fn sqrtf , -and -.Fn sqrtl -functions compute the -non-negative square root of -.Ar x . -.Sh RETURN VALUES -The -.Fn cbrt , -.Fn cbrtf , -and -.Fn cbrtl -functions return the requested cube root. -The -.Fn sqrt , -.Fn sqrtf , -and -.Fn sqrtl -functions return the requested square root -unless an error occurs. -An attempt to take the -.Fn sqrt -of negative -.Fa x -raises an invalid exception and causes an \*(Na to be returned -(except that the square root of -0 is valid and equal to -0.) -.Sh SEE ALSO -.Xr fenv 3 , -.Xr math 3 -.Sh STANDARDS -The -.Fn cbrt , -.Fn cbrtf , -.Fn cbrtl , -.Fn sqrt , -.Fn sqrtf , -and -.Fn sqrtl -functions conform to -.St -isoC-99 . -.Sh HISTORY -The -.Fn cbrt -function appeared in -.Bx 4.3 . -The -.Fn sqrtl -function appeared in -.Fx 8.0 . -The -.Fn cbrtl -function appeared in -.Fx 9.0 . diff --git a/man/tan.3 b/man/tan.3 deleted file mode 100644 index 69b02b9..0000000 --- a/man/tan.3 +++ /dev/null @@ -1,83 +0,0 @@ -.\" Copyright (c) 1991 The Regents of the University of California. -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" from: @(#)tan.3 5.1 (Berkeley) 5/2/91 -.\" $FreeBSD: src/lib/msun/man/tan.3,v 1.12 2011/10/17 05:41:03 das Exp $ -.\" -.Dd January 24, 2008 -.Dt TAN 3 -.Os -.Sh NAME -.Nm tan , -.Nm tanf , -.Nm tanl -.Nd tangent functions -.Sh LIBRARY -.Lb libm -.Sh SYNOPSIS -.In math.h -.Ft double -.Fn tan "double x" -.Ft float -.Fn tanf "float x" -.Ft long double -.Fn tanl "long double x" -.Sh DESCRIPTION -The -.Fn tan , -.Fn tanf , -and -.Fn tanl -functions compute the tangent of -.Fa x -(measured in radians). -A large magnitude argument may yield a result -with little or no significance. -For a discussion of error due to roundoff, see -.Xr math 3 . -.Sh RETURN VALUES -The -.Fn tan , -.Fn tanf , -and -.Fn tanl -functions return the tangent value. -.Sh SEE ALSO -.Xr acos 3 , -.Xr asin 3 , -.Xr atan 3 , -.Xr atan2 3 , -.Xr cos 3 , -.Xr cosh 3 , -.Xr ctan 3 , -.Xr math 3 , -.Xr sin 3 , -.Xr sinh 3 , -.Xr tanh 3 -.Sh STANDARDS -These functions conform to -.St -isoC-99 . diff --git a/man/tanh.3 b/man/tanh.3 deleted file mode 100644 index 4ee3920..0000000 --- a/man/tanh.3 +++ /dev/null @@ -1,77 +0,0 @@ -.\" Copyright (c) 1991 The Regents of the University of California. -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" from: @(#)tanh.3 5.1 (Berkeley) 5/2/91 -.\" $FreeBSD: src/lib/msun/man/tanh.3,v 1.12 2011/10/17 05:41:03 das Exp $ -.\" -.Dd May 2, 1991 -.Dt TANH 3 -.Os -.Sh NAME -.Nm tanh , -.Nm tanhf -.Nd hyperbolic tangent functions -.Sh LIBRARY -.Lb libm -.Sh SYNOPSIS -.In math.h -.Ft double -.Fn tanh "double x" -.Ft float -.Fn tanhf "float x" -.Sh DESCRIPTION -The -.Fn tanh -and the -.Fn tanhf -functions compute the hyperbolic tangent of -.Fa x . -For a discussion of error due to roundoff, see -.Xr math 3 . -.Sh RETURN VALUES -The -.Fn tanh -and the -.Fn tanhf -functions return the hyperbolic tangent value. -.Sh SEE ALSO -.Xr acos 3 , -.Xr asin 3 , -.Xr atan 3 , -.Xr atan2 3 , -.Xr cos 3 , -.Xr cosh 3 , -.Xr ctanh 3 , -.Xr math 3 , -.Xr sin 3 , -.Xr sinh 3 , -.Xr tan 3 -.Sh STANDARDS -The -.Fn tanh -function conforms to -.St -isoC . diff --git a/man/trunc.3 b/man/trunc.3 deleted file mode 100644 index cb6c26f..0000000 --- a/man/trunc.3 +++ /dev/null @@ -1,80 +0,0 @@ -.\" Copyright (c) 2004, 2005 David Schultz -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" $FreeBSD: src/lib/msun/man/trunc.3,v 1.3 2005/06/15 19:04:04 ru Exp $ -.\" -.Dd April 16, 2005 -.Dt TRUNC 3 -.Os -.Sh NAME -.Nm trunc , -.Nm truncf , -.Nm truncl -.Nd nearest integral value with magnitude less than or equal to |x| -.Sh LIBRARY -.Lb libm -.Sh SYNOPSIS -.In math.h -.Ft double -.Fn trunc "double x" -.Ft float -.Fn truncf "float x" -.Ft "long double" -.Fn truncl "long double x" -.Sh DESCRIPTION -The -.Fn trunc , -.Fn truncf , -and -.Fn truncl -functions return the nearest integral value with magnitude less than -or equal to -.Pf | Fa x Ns | . -They are equivalent to -.Fn rint , -.Fn rintf , -and -.Fn rintl , -respectively, in the -.Dv FE_TOWARDZERO -rounding mode. -.Sh SEE ALSO -.Xr ceil 3 , -.Xr fesetround 3 , -.Xr floor 3 , -.Xr math 3 , -.Xr nextafter 3 , -.Xr rint 3 , -.Xr round 3 -.Sh STANDARDS -The -.Fn trunc , -.Fn truncf , -and -.Fn truncl -functions conform to -.St -isoC-99 . -.Sh HISTORY -These routines first appeared in -.Fx 5.3 . diff --git a/src/e_acos.c b/src/e_acos.c index 56552d8..53e9d3d 100644 --- a/src/e_acos.c +++ b/src/e_acos.c @@ -40,7 +40,7 @@ #include -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const double diff --git a/src/e_acosf.c b/src/e_acosf.c index 4de243d..8b98dd2 100644 --- a/src/e_acosf.c +++ b/src/e_acosf.c @@ -16,7 +16,7 @@ #include //__FBSDID("$FreeBSD: src/lib/msun/src/e_acosf.c,v 1.11 2008/08/03 17:39:54 das Exp $"); -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const float diff --git a/src/e_acosh.c b/src/e_acosh.c index df6f0f3..5736945 100644 --- a/src/e_acosh.c +++ b/src/e_acosh.c @@ -29,7 +29,7 @@ * acosh(NaN) is NaN without signal. */ -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const double diff --git a/src/e_acoshf.c b/src/e_acoshf.c index 7836961..1bae9c2 100644 --- a/src/e_acoshf.c +++ b/src/e_acoshf.c @@ -16,7 +16,7 @@ #include //__FBSDID("$FreeBSD: src/lib/msun/src/e_acoshf.c,v 1.8 2008/02/22 02:30:34 das Exp $"); -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const float diff --git a/src/e_acosl.c b/src/e_acosl.c index 17a81ff..7415070 100644 --- a/src/e_acosl.c +++ b/src/e_acosl.c @@ -23,7 +23,7 @@ #include #include "invtrig.h" -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const long double diff --git a/src/e_asin.c b/src/e_asin.c index d1c1147..c41f39e 100644 --- a/src/e_asin.c +++ b/src/e_asin.c @@ -46,7 +46,7 @@ #include -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const double diff --git a/src/e_asinf.c b/src/e_asinf.c index d52c3c2..95ebd55 100644 --- a/src/e_asinf.c +++ b/src/e_asinf.c @@ -16,7 +16,7 @@ #include //__FBSDID("$FreeBSD: src/lib/msun/src/e_asinf.c,v 1.13 2008/08/08 00:21:27 das Exp $"); -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const float diff --git a/src/e_asinl.c b/src/e_asinl.c index 5c0acad..2235824 100644 --- a/src/e_asinl.c +++ b/src/e_asinl.c @@ -23,7 +23,7 @@ #include #include "invtrig.h" -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const long double diff --git a/src/e_atan2.c b/src/e_atan2.c index ff3a51d..b64950c 100644 --- a/src/e_atan2.c +++ b/src/e_atan2.c @@ -44,7 +44,7 @@ #include -#include "math.h" +#include "openlibm.h" #include "math_private.h" static volatile double diff --git a/src/e_atan2f.c b/src/e_atan2f.c index 777e98b..da6faaf 100644 --- a/src/e_atan2f.c +++ b/src/e_atan2f.c @@ -16,7 +16,7 @@ #include //__FBSDID("$FreeBSD: src/lib/msun/src/e_atan2f.c,v 1.12 2008/08/03 17:39:54 das Exp $"); -#include "math.h" +#include "openlibm.h" #include "math_private.h" static volatile float diff --git a/src/e_atan2l.c b/src/e_atan2l.c index 1e8ca46..a12a8ea 100644 --- a/src/e_atan2l.c +++ b/src/e_atan2l.c @@ -24,7 +24,7 @@ #include #include "invtrig.h" -#include "math.h" +#include "openlibm.h" #include "math_private.h" static volatile long double diff --git a/src/e_atanh.c b/src/e_atanh.c index 5b5c4ef..da6cff3 100644 --- a/src/e_atanh.c +++ b/src/e_atanh.c @@ -33,7 +33,7 @@ * */ -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const double one = 1.0, huge = 1e300; diff --git a/src/e_atanhf.c b/src/e_atanhf.c index bbf4cba..522b7da 100644 --- a/src/e_atanhf.c +++ b/src/e_atanhf.c @@ -16,7 +16,7 @@ #include //__FBSDID("$FreeBSD: src/lib/msun/src/e_atanhf.c,v 1.7 2008/02/22 02:30:34 das Exp $"); -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const float one = 1.0, huge = 1e30; diff --git a/src/e_cosh.c b/src/e_cosh.c index 17b002e..2a65c52 100644 --- a/src/e_cosh.c +++ b/src/e_cosh.c @@ -35,7 +35,7 @@ * only cosh(0)=1 is exact for finite x. */ -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const double one = 1.0, half=0.5, huge = 1.0e300; diff --git a/src/e_coshf.c b/src/e_coshf.c index da4c666..f6a1314 100644 --- a/src/e_coshf.c +++ b/src/e_coshf.c @@ -16,7 +16,7 @@ #include //__FBSDID("$FreeBSD: src/lib/msun/src/e_coshf.c,v 1.9 2011/10/21 06:28:47 das Exp $"); -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const float one = 1.0, half=0.5, huge = 1.0e30; diff --git a/src/e_exp.c b/src/e_exp.c index af1c0df..83cb796 100644 --- a/src/e_exp.c +++ b/src/e_exp.c @@ -78,7 +78,7 @@ #include -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const double diff --git a/src/e_expf.c b/src/e_expf.c index 1a36e1f..a8c2e74 100644 --- a/src/e_expf.c +++ b/src/e_expf.c @@ -18,7 +18,7 @@ #include -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const float diff --git a/src/e_fmod.c b/src/e_fmod.c index c2d77a7..76a3f28 100644 --- a/src/e_fmod.c +++ b/src/e_fmod.c @@ -20,7 +20,7 @@ * Method: shift and subtract */ -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const double one = 1.0, Zero[] = {0.0, -0.0,}; diff --git a/src/e_fmodf.c b/src/e_fmodf.c index 6b453e9..2f87017 100644 --- a/src/e_fmodf.c +++ b/src/e_fmodf.c @@ -22,7 +22,7 @@ * Method: shift and subtract */ -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const float one = 1.0, Zero[] = {0.0, -0.0,}; diff --git a/src/e_fmodl.c b/src/e_fmodl.c index d5b2072..baa84e9 100644 --- a/src/e_fmodl.c +++ b/src/e_fmodl.c @@ -16,8 +16,8 @@ #include #include -#include "fpmath.h" -#include "math.h" +#include "fpopenlibm.h" +#include "openlibm.h" #include "math_private.h" #define BIAS (LDBL_MAX_EXP - 1) diff --git a/src/e_gamma.c b/src/e_gamma.c index d74c939..1089b4c 100644 --- a/src/e_gamma.c +++ b/src/e_gamma.c @@ -21,7 +21,7 @@ * Method: call __ieee754_gamma_r */ -#include "math.h" +#include "openlibm.h" #include "math_private.h" extern int signgam; diff --git a/src/e_gamma_r.c b/src/e_gamma_r.c index 1985595..e736ed1 100644 --- a/src/e_gamma_r.c +++ b/src/e_gamma_r.c @@ -22,7 +22,7 @@ * Method: See __ieee754_lgamma_r */ -#include "math.h" +#include "openlibm.h" #include "math_private.h" double diff --git a/src/e_gammaf.c b/src/e_gammaf.c index a5e6870..2725f5e 100644 --- a/src/e_gammaf.c +++ b/src/e_gammaf.c @@ -22,7 +22,7 @@ * Method: call __ieee754_gammaf_r */ -#include "math.h" +#include "openlibm.h" #include "math_private.h" extern int signgam; diff --git a/src/e_gammaf_r.c b/src/e_gammaf_r.c index 91b547d..e7fa20e 100644 --- a/src/e_gammaf_r.c +++ b/src/e_gammaf_r.c @@ -23,7 +23,7 @@ * Method: See __ieee754_lgammaf_r */ -#include "math.h" +#include "openlibm.h" #include "math_private.h" float diff --git a/src/e_hypot.c b/src/e_hypot.c index de8eb1d..97a7295 100644 --- a/src/e_hypot.c +++ b/src/e_hypot.c @@ -48,7 +48,7 @@ #include -#include "math.h" +#include "openlibm.h" #include "math_private.h" double diff --git a/src/e_hypotf.c b/src/e_hypotf.c index f68fb0b..891502e 100644 --- a/src/e_hypotf.c +++ b/src/e_hypotf.c @@ -16,7 +16,7 @@ #include //__FBSDID("$FreeBSD: src/lib/msun/src/e_hypotf.c,v 1.14 2011/10/15 07:00:28 das Exp $"); -#include "math.h" +#include "openlibm.h" #include "math_private.h" float diff --git a/src/e_hypotl.c b/src/e_hypotl.c index 8799139..f195f40 100644 --- a/src/e_hypotl.c +++ b/src/e_hypotl.c @@ -17,8 +17,8 @@ #include -#include "fpmath.h" -#include "math.h" +#include "fpopenlibm.h" +#include "openlibm.h" #include "math_private.h" #define GET_LDBL_MAN(h, l, v) do { \ diff --git a/src/e_j0.c b/src/e_j0.c index cb671e6..7d045f9 100644 --- a/src/e_j0.c +++ b/src/e_j0.c @@ -59,7 +59,7 @@ * 3. Special cases: y0(0)=-inf, y0(x<0)=NaN, y0(inf)=0. */ -#include "math.h" +#include "openlibm.h" #include "math_private.h" static double pzero(double), qzero(double); diff --git a/src/e_j0f.c b/src/e_j0f.c index 89f07ab..d45cb9b 100644 --- a/src/e_j0f.c +++ b/src/e_j0f.c @@ -16,7 +16,7 @@ #include //__FBSDID("$FreeBSD: src/lib/msun/src/e_j0f.c,v 1.8 2008/02/22 02:30:35 das Exp $"); -#include "math.h" +#include "openlibm.h" #include "math_private.h" static float pzerof(float), qzerof(float); diff --git a/src/e_j1.c b/src/e_j1.c index 55e180e..28d9b75 100644 --- a/src/e_j1.c +++ b/src/e_j1.c @@ -59,7 +59,7 @@ * by method mentioned above. */ -#include "math.h" +#include "openlibm.h" #include "math_private.h" static double pone(double), qone(double); diff --git a/src/e_j1f.c b/src/e_j1f.c index 7186298..943c76f 100644 --- a/src/e_j1f.c +++ b/src/e_j1f.c @@ -16,7 +16,7 @@ #include //__FBSDID("$FreeBSD: src/lib/msun/src/e_j1f.c,v 1.8 2008/02/22 02:30:35 das Exp $"); -#include "math.h" +#include "openlibm.h" #include "math_private.h" static float ponef(float), qonef(float); diff --git a/src/e_jn.c b/src/e_jn.c index 06dc9c2..8236530 100644 --- a/src/e_jn.c +++ b/src/e_jn.c @@ -40,7 +40,7 @@ * */ -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const double diff --git a/src/e_jnf.c b/src/e_jnf.c index fcc8bce..76217e0 100644 --- a/src/e_jnf.c +++ b/src/e_jnf.c @@ -16,7 +16,7 @@ #include //__FBSDID("$FreeBSD: src/lib/msun/src/e_jnf.c,v 1.11 2010/11/13 10:54:10 uqs Exp $"); -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const float diff --git a/src/e_lgamma.c b/src/e_lgamma.c index 022e852..84edb71 100644 --- a/src/e_lgamma.c +++ b/src/e_lgamma.c @@ -21,7 +21,7 @@ * Method: call __ieee754_lgamma_r */ -#include "math.h" +#include "openlibm.h" #include "math_private.h" extern int signgam; diff --git a/src/e_lgamma_r.c b/src/e_lgamma_r.c index e607230..1b2f04d 100644 --- a/src/e_lgamma_r.c +++ b/src/e_lgamma_r.c @@ -83,7 +83,7 @@ * */ -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const double diff --git a/src/e_lgammaf.c b/src/e_lgammaf.c index d889197..1e6c4a1 100644 --- a/src/e_lgammaf.c +++ b/src/e_lgammaf.c @@ -22,7 +22,7 @@ * Method: call __ieee754_lgammaf_r */ -#include "math.h" +#include "openlibm.h" #include "math_private.h" extern int signgam; diff --git a/src/e_lgammaf_r.c b/src/e_lgammaf_r.c index 1fa66a2..76d85f0 100644 --- a/src/e_lgammaf_r.c +++ b/src/e_lgammaf_r.c @@ -16,7 +16,7 @@ #include //__FBSDID("$FreeBSD: src/lib/msun/src/e_lgammaf_r.c,v 1.12 2011/10/15 07:00:28 das Exp $"); -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const float diff --git a/src/e_log.c b/src/e_log.c index d720331..b78f12d 100644 --- a/src/e_log.c +++ b/src/e_log.c @@ -65,7 +65,7 @@ * to produce the hexadecimal values shown. */ -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const double diff --git a/src/e_log10.c b/src/e_log10.c index f60ee87..f291d24 100644 --- a/src/e_log10.c +++ b/src/e_log10.c @@ -22,7 +22,7 @@ * in not-quite-routine extra precision. */ -#include "math.h" +#include "openlibm.h" #include "math_private.h" #include "k_log.h" diff --git a/src/e_log10f.c b/src/e_log10f.c index 24655d1..b4b50d6 100644 --- a/src/e_log10f.c +++ b/src/e_log10f.c @@ -16,7 +16,7 @@ * Float version of e_log10.c. See the latter for most comments. */ -#include "math.h" +#include "openlibm.h" #include "math_private.h" #include "k_logf.h" diff --git a/src/e_log2.c b/src/e_log2.c index 5ada1e4..2df2242 100644 --- a/src/e_log2.c +++ b/src/e_log2.c @@ -24,7 +24,7 @@ * in not-quite-routine extra precision. */ -#include "math.h" +#include "openlibm.h" #include "math_private.h" #include "k_log.h" diff --git a/src/e_log2f.c b/src/e_log2f.c index dd3bcff..d5d3302 100644 --- a/src/e_log2f.c +++ b/src/e_log2f.c @@ -16,7 +16,7 @@ * Float version of e_log2.c. See the latter for most comments. */ -#include "math.h" +#include "openlibm.h" #include "math_private.h" #include "k_logf.h" diff --git a/src/e_logf.c b/src/e_logf.c index 5656786..5924635 100644 --- a/src/e_logf.c +++ b/src/e_logf.c @@ -16,7 +16,7 @@ #include //__FBSDID("$FreeBSD: src/lib/msun/src/e_logf.c,v 1.11 2008/03/29 16:37:59 das Exp $"); -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const float diff --git a/src/e_pow.c b/src/e_pow.c index 1039321..f07e249 100644 --- a/src/e_pow.c +++ b/src/e_pow.c @@ -57,7 +57,7 @@ * to produce the hexadecimal values shown. */ -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const double diff --git a/src/e_powf.c b/src/e_powf.c index d1f90e9..2f2d3b0 100644 --- a/src/e_powf.c +++ b/src/e_powf.c @@ -16,7 +16,7 @@ #include //__FBSDID("$FreeBSD: src/lib/msun/src/e_powf.c,v 1.16 2011/10/21 06:26:07 das Exp $"); -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const float diff --git a/src/e_rem_pio2.c b/src/e_rem_pio2.c index 8021ffc..b33d60c 100644 --- a/src/e_rem_pio2.c +++ b/src/e_rem_pio2.c @@ -24,7 +24,7 @@ #include -#include "math.h" +#include "openlibm.h" #include "math_private.h" /* diff --git a/src/e_rem_pio2f.c b/src/e_rem_pio2f.c index b899cd5..bedcc4e 100644 --- a/src/e_rem_pio2f.c +++ b/src/e_rem_pio2f.c @@ -26,7 +26,7 @@ #include -#include "math.h" +#include "openlibm.h" #include "math_private.h" /* diff --git a/src/e_remainder.c b/src/e_remainder.c index 11d9409..38de07f 100644 --- a/src/e_remainder.c +++ b/src/e_remainder.c @@ -25,7 +25,7 @@ #include -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const double zero = 0.0; diff --git a/src/e_remainderf.c b/src/e_remainderf.c index c9db676..568d6c5 100644 --- a/src/e_remainderf.c +++ b/src/e_remainderf.c @@ -16,7 +16,7 @@ #include //__FBSDID("$FreeBSD: src/lib/msun/src/e_remainderf.c,v 1.8 2008/02/12 17:11:36 bde Exp $"); -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const float zero = 0.0; diff --git a/src/e_remainderl.c b/src/e_remainderl.c index 853c79f..f3bb16a 100644 --- a/src/e_remainderl.c +++ b/src/e_remainderl.c @@ -27,7 +27,7 @@ #include //__FBSDID("$FreeBSD: src/lib/msun/src/e_remainderl.c,v 1.1 2008/03/30 20:47:42 das Exp $"); -#include +#include long double remainderl(long double x, long double y) diff --git a/src/e_scalb.c b/src/e_scalb.c index 12669c9..3718cc4 100644 --- a/src/e_scalb.c +++ b/src/e_scalb.c @@ -20,7 +20,7 @@ * should use scalbn() instead. */ -#include "math.h" +#include "openlibm.h" #include "math_private.h" #ifdef _SCALB_INT diff --git a/src/e_scalbf.c b/src/e_scalbf.c index c50a0f9..5662435 100644 --- a/src/e_scalbf.c +++ b/src/e_scalbf.c @@ -16,7 +16,7 @@ #include //__FBSDID("$FreeBSD: src/lib/msun/src/e_scalbf.c,v 1.13 2008/02/22 02:30:35 das Exp $"); -#include "math.h" +#include "openlibm.h" #include "math_private.h" #ifdef _SCALB_INT diff --git a/src/e_sinh.c b/src/e_sinh.c index 2564e98..a2899cb 100644 --- a/src/e_sinh.c +++ b/src/e_sinh.c @@ -32,7 +32,7 @@ * only sinh(0)=0 is exact for finite x. */ -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const double one = 1.0, shuge = 1.0e307; diff --git a/src/e_sinhf.c b/src/e_sinhf.c index 661e3b6..850ac6e 100644 --- a/src/e_sinhf.c +++ b/src/e_sinhf.c @@ -16,7 +16,7 @@ #include //__FBSDID("$FreeBSD: src/lib/msun/src/e_sinhf.c,v 1.10 2011/10/21 06:28:47 das Exp $"); -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const float one = 1.0, shuge = 1.0e37; diff --git a/src/e_sqrt.c b/src/e_sqrt.c index 9a5bb98..a222631 100644 --- a/src/e_sqrt.c +++ b/src/e_sqrt.c @@ -86,7 +86,7 @@ #include -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const double one = 1.0, tiny=1.0e-300; diff --git a/src/e_sqrtf.c b/src/e_sqrtf.c index edc9ef2..e48f9a8 100644 --- a/src/e_sqrtf.c +++ b/src/e_sqrtf.c @@ -17,7 +17,7 @@ static char rcsid[] = "$FreeBSD: src/lib/msun/src/e_sqrtf.c,v 1.7 2002/05/28 18:15:04 alfred Exp $"; #endif -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const float one = 1.0, tiny=1.0e-30; diff --git a/src/e_sqrtl.c b/src/e_sqrtl.c index f3c2c31..cbf7fc3 100644 --- a/src/e_sqrtl.c +++ b/src/e_sqrtl.c @@ -30,8 +30,8 @@ #include #include -#include "fpmath.h" -#include "math.h" +#include "fpopenlibm.h" +#include "openlibm.h" /* Return (x + ulp) for normal positive x. Assumes no overflow. */ static inline long double diff --git a/src/k_cos.c b/src/k_cos.c index 799bbdf..f180c6a 100644 --- a/src/k_cos.c +++ b/src/k_cos.c @@ -53,7 +53,7 @@ * any extra precision in w. */ -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const double diff --git a/src/k_cosf.c b/src/k_cosf.c index 43b3c7c..bd5158b 100644 --- a/src/k_cosf.c +++ b/src/k_cosf.c @@ -19,7 +19,7 @@ //__FBSDID("$FreeBSD: src/lib/msun/src/k_cosf.c,v 1.18 2009/06/03 08:16:34 ed Exp $"); #endif -#include "math.h" +#include "openlibm.h" #include "math_private.h" /* |cos(x) - c(x)| < 2**-34.1 (~[-5.37e-11, 5.295e-11]). */ diff --git a/src/k_exp.c b/src/k_exp.c index 5ee8b3e..f91c5eb 100644 --- a/src/k_exp.c +++ b/src/k_exp.c @@ -29,7 +29,7 @@ #include -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const uint32_t k = 1799; /* constant for reduction */ diff --git a/src/k_expf.c b/src/k_expf.c index 513dc3e..0776bb6 100644 --- a/src/k_expf.c +++ b/src/k_expf.c @@ -29,7 +29,7 @@ #include -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const uint32_t k = 235; /* constant for reduction */ diff --git a/src/k_rem_pio2.c b/src/k_rem_pio2.c index 1cc342d..36d9627 100644 --- a/src/k_rem_pio2.c +++ b/src/k_rem_pio2.c @@ -131,7 +131,7 @@ #include -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const int init_jk[] = {3,4,4,6}; /* initial value for jk */ diff --git a/src/k_sin.c b/src/k_sin.c index 27091b3..58ccf8e 100644 --- a/src/k_sin.c +++ b/src/k_sin.c @@ -44,7 +44,7 @@ * sin(x) = x + (S1*x + (x *(r-y/2)+y)) */ -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const double diff --git a/src/k_sinf.c b/src/k_sinf.c index 779181c..750d26a 100644 --- a/src/k_sinf.c +++ b/src/k_sinf.c @@ -19,7 +19,7 @@ //__FBSDID("$FreeBSD: src/lib/msun/src/k_sinf.c,v 1.16 2009/06/03 08:16:34 ed Exp $"); #endif -#include "math.h" +#include "openlibm.h" #include "math_private.h" /* |sin(x)/x - s(x)| < 2**-37.5 (~[-4.89e-12, 4.824e-12]). */ diff --git a/src/k_tan.c b/src/k_tan.c index a169788..4fb9ea6 100644 --- a/src/k_tan.c +++ b/src/k_tan.c @@ -49,7 +49,7 @@ * = 1 - 2*(tan(y) - (tan(y)^2)/(1+tan(y))) */ -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const double xxx[] = { 3.33333333333334091986e-01, /* 3FD55555, 55555563 */ diff --git a/src/k_tanf.c b/src/k_tanf.c index ea2ebab..f92cb19 100644 --- a/src/k_tanf.c +++ b/src/k_tanf.c @@ -18,7 +18,7 @@ //__FBSDID("$FreeBSD: src/lib/msun/src/k_tanf.c,v 1.23 2009/06/03 08:16:34 ed Exp $"); #endif -#include "math.h" +#include "openlibm.h" #include "math_private.h" /* |tan(x)/x - t(x)| < 2**-25.5 (~[-2e-08, 2e-08]). */ diff --git a/src/math.h b/src/openlibm.h similarity index 98% rename from src/math.h rename to src/openlibm.h index 4b0b85e..9c5a463 100644 --- a/src/math.h +++ b/src/openlibm.h @@ -11,7 +11,7 @@ /* * from: @(#)fdlibm.h 5.1 93/09/24 - * $FreeBSD: src/lib/msun/src/math.h,v 1.82 2011/11/12 19:55:48 theraven Exp $ + * $FreeBSD: src/lib/msun/src/openlibm.h,v 1.82 2011/11/12 19:55:48 theraven Exp $ */ #ifndef _MATH_H_ @@ -152,7 +152,7 @@ extern int signgam; #if __BSD_VISIBLE #if 0 -/* Old value from 4.4BSD-Lite math.h; this is probably better. */ +/* Old value from 4.4BSD-Lite openlibm.h; this is probably better. */ #define HUGE HUGE_VAL #else #define HUGE MAXFLOAT diff --git a/src/s_asinh.c b/src/s_asinh.c index 6bb8bd3..1d14759 100644 --- a/src/s_asinh.c +++ b/src/s_asinh.c @@ -24,7 +24,7 @@ * := sign(x)*log1p(|x| + x^2/(1 + sqrt(1+x^2))) */ -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const double diff --git a/src/s_asinhf.c b/src/s_asinhf.c index b5fa240..dc43f62 100644 --- a/src/s_asinhf.c +++ b/src/s_asinhf.c @@ -16,7 +16,7 @@ #include //__FBSDID("$FreeBSD: src/lib/msun/src/s_asinhf.c,v 1.9 2008/02/22 02:30:35 das Exp $"); -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const float diff --git a/src/s_atan.c b/src/s_atan.c index 146edea..bc4f44a 100644 --- a/src/s_atan.c +++ b/src/s_atan.c @@ -35,7 +35,7 @@ #include -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const double atanhi[] = { diff --git a/src/s_atanf.c b/src/s_atanf.c index 58274aa..0d1f63a 100644 --- a/src/s_atanf.c +++ b/src/s_atanf.c @@ -16,7 +16,7 @@ #include //__FBSDID("$FreeBSD: src/lib/msun/src/s_atanf.c,v 1.10 2008/08/01 01:24:25 das Exp $"); -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const float atanhi[] = { diff --git a/src/s_atanl.c b/src/s_atanl.c index af65697..6fa4106 100644 --- a/src/s_atanl.c +++ b/src/s_atanl.c @@ -22,7 +22,7 @@ #include #include "invtrig.h" -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const long double diff --git a/src/s_carg.c b/src/s_carg.c index 9baa7f1..5a938b9 100644 --- a/src/s_carg.c +++ b/src/s_carg.c @@ -28,7 +28,7 @@ //__FBSDID("$FreeBSD: src/lib/msun/src/s_carg.c,v 1.1 2007/12/12 23:43:51 das Exp $"); #include -#include +#include double carg(double complex z) diff --git a/src/s_cargf.c b/src/s_cargf.c index ae7c606..c694995 100644 --- a/src/s_cargf.c +++ b/src/s_cargf.c @@ -28,7 +28,7 @@ //__FBSDID("$FreeBSD: src/lib/msun/src/s_cargf.c,v 1.1 2007/12/12 23:43:51 das Exp $"); #include -#include +#include float cargf(float complex z) diff --git a/src/s_cargl.c b/src/s_cargl.c index 94cea25..983d0d2 100644 --- a/src/s_cargl.c +++ b/src/s_cargl.c @@ -28,7 +28,7 @@ //__FBSDID("$FreeBSD: src/lib/msun/src/s_cargl.c,v 1.1 2008/07/31 22:41:26 das Exp $"); #include -#include +#include long double cargl(long double complex z) diff --git a/src/s_cbrt.c b/src/s_cbrt.c index 5b23f9f..f6850f6 100644 --- a/src/s_cbrt.c +++ b/src/s_cbrt.c @@ -15,7 +15,7 @@ #include //__FBSDID("$FreeBSD: src/lib/msun/src/s_cbrt.c,v 1.17 2011/03/12 16:50:39 kargl Exp $"); -#include "math.h" +#include "openlibm.h" #include "math_private.h" /* cbrt(x) diff --git a/src/s_cbrtf.c b/src/s_cbrtf.c index 21c2934..b34c030 100644 --- a/src/s_cbrtf.c +++ b/src/s_cbrtf.c @@ -17,7 +17,7 @@ #include //__FBSDID("$FreeBSD: src/lib/msun/src/s_cbrtf.c,v 1.18 2008/02/22 02:30:35 das Exp $"); -#include "math.h" +#include "openlibm.h" #include "math_private.h" /* cbrtf(x) diff --git a/src/s_cbrtl.c b/src/s_cbrtl.c index 48699ff..a4b9930 100644 --- a/src/s_cbrtl.c +++ b/src/s_cbrtl.c @@ -20,8 +20,8 @@ #include #include -#include "fpmath.h" -#include "math.h" +#include "fpopenlibm.h" +#include "openlibm.h" #include "math_private.h" #define BIAS (LDBL_MAX_EXP - 1) diff --git a/src/s_ccosh.c b/src/s_ccosh.c index f6490a1..65ba253 100644 --- a/src/s_ccosh.c +++ b/src/s_ccosh.c @@ -38,7 +38,7 @@ //__FBSDID("$FreeBSD: src/lib/msun/src/s_ccosh.c,v 1.2 2011/10/21 06:29:32 das Exp $"); #include -#include +#include #include "math_private.h" diff --git a/src/s_ccoshf.c b/src/s_ccoshf.c index 647b753..1929278 100644 --- a/src/s_ccoshf.c +++ b/src/s_ccoshf.c @@ -32,7 +32,7 @@ //__FBSDID("$FreeBSD: src/lib/msun/src/s_ccoshf.c,v 1.2 2011/10/21 06:29:32 das Exp $"); #include -#include +#include #include "math_private.h" diff --git a/src/s_ceil.c b/src/s_ceil.c index 5a05da5..5828570 100644 --- a/src/s_ceil.c +++ b/src/s_ceil.c @@ -24,7 +24,7 @@ #include -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const double huge = 1.0e300; diff --git a/src/s_ceilf.c b/src/s_ceilf.c index 15b1eca..df516ba 100644 --- a/src/s_ceilf.c +++ b/src/s_ceilf.c @@ -16,7 +16,7 @@ #include //__FBSDID("$FreeBSD: src/lib/msun/src/s_ceilf.c,v 1.8 2008/02/22 02:30:35 das Exp $"); -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const float huge = 1.0e30; diff --git a/src/s_ceill.c b/src/s_ceill.c index 2d983af..a3bba31 100644 --- a/src/s_ceill.c +++ b/src/s_ceill.c @@ -24,10 +24,10 @@ */ #include -#include +#include #include -#include "fpmath.h" +#include "fpopenlibm.h" #ifdef LDBL_IMPLICIT_NBIT #define MANH_SIZE (LDBL_MANH_SIZE + 1) diff --git a/src/s_cexp.c b/src/s_cexp.c index 2fb519e..34acb43 100644 --- a/src/s_cexp.c +++ b/src/s_cexp.c @@ -28,7 +28,7 @@ //__FBSDID("$FreeBSD: src/lib/msun/src/s_cexp.c,v 1.3 2011/10/21 06:27:56 das Exp $"); #include -#include +#include #include "math_private.h" diff --git a/src/s_cexpf.c b/src/s_cexpf.c index 7722c1b..8782ddb 100644 --- a/src/s_cexpf.c +++ b/src/s_cexpf.c @@ -28,7 +28,7 @@ //__FBSDID("$FreeBSD: src/lib/msun/src/s_cexpf.c,v 1.3 2011/10/21 06:27:56 das Exp $"); #include -#include +#include #include "math_private.h" diff --git a/src/s_copysign.c b/src/s_copysign.c index 0fec002..e006d3f 100644 --- a/src/s_copysign.c +++ b/src/s_copysign.c @@ -19,7 +19,7 @@ * with the sign bit of y. */ -#include "math.h" +#include "openlibm.h" #include "math_private.h" double diff --git a/src/s_copysignf.c b/src/s_copysignf.c index f778661..516df00 100644 --- a/src/s_copysignf.c +++ b/src/s_copysignf.c @@ -22,7 +22,7 @@ * with the sign bit of y. */ -#include "math.h" +#include "openlibm.h" #include "math_private.h" float diff --git a/src/s_copysignl.c b/src/s_copysignl.c index 1bb755b..5f164d9 100644 --- a/src/s_copysignl.c +++ b/src/s_copysignl.c @@ -26,9 +26,9 @@ * $FreeBSD: src/lib/msun/src/s_copysignl.c,v 1.2 2007/01/07 07:54:21 das Exp $ */ -#include +#include -#include "fpmath.h" +#include "fpopenlibm.h" long double copysignl(long double x, long double y) diff --git a/src/s_cos.c b/src/s_cos.c index d935d9f..d802cee 100644 --- a/src/s_cos.c +++ b/src/s_cos.c @@ -46,7 +46,7 @@ #include -#include "math.h" +#include "openlibm.h" #define INLINE_REM_PIO2 #include "math_private.h" #include "e_rem_pio2.c" diff --git a/src/s_cosf.c b/src/s_cosf.c index d30fb26..7756b34 100644 --- a/src/s_cosf.c +++ b/src/s_cosf.c @@ -19,7 +19,7 @@ #include -#include "math.h" +#include "openlibm.h" #define INLINE_KERNEL_COSDF #define INLINE_KERNEL_SINDF #define INLINE_REM_PIO2F diff --git a/src/s_cosl.c b/src/s_cosl.c index a2e3e26..7d20a93 100644 --- a/src/s_cosl.c +++ b/src/s_cosl.c @@ -34,7 +34,7 @@ #include -#include "math.h" +#include "openlibm.h" #include "math_private.h" #if LDBL_MANT_DIG == 64 #include "../ld80/e_rem_pio2l.h" diff --git a/src/s_cproj.c b/src/s_cproj.c index c2ce6bf..4c5e312 100644 --- a/src/s_cproj.c +++ b/src/s_cproj.c @@ -28,7 +28,7 @@ //__FBSDID("$FreeBSD: src/lib/msun/src/s_cproj.c,v 1.1 2008/08/07 15:07:48 das Exp $"); #include -#include +#include #include "math_private.h" diff --git a/src/s_cprojf.c b/src/s_cprojf.c index cdd92c8..79884f8 100644 --- a/src/s_cprojf.c +++ b/src/s_cprojf.c @@ -28,7 +28,7 @@ //__FBSDID("$FreeBSD: src/lib/msun/src/s_cprojf.c,v 1.1 2008/08/07 15:07:48 das Exp $"); #include -#include +#include #include "math_private.h" diff --git a/src/s_cprojl.c b/src/s_cprojl.c index 65d4df2..1e47bb2 100644 --- a/src/s_cprojl.c +++ b/src/s_cprojl.c @@ -28,7 +28,7 @@ //__FBSDID("$FreeBSD: src/lib/msun/src/s_cprojl.c,v 1.1 2008/08/07 15:07:48 das Exp $"); #include -#include +#include #include "math_private.h" diff --git a/src/s_csinh.c b/src/s_csinh.c index afac998..d2d1221 100644 --- a/src/s_csinh.c +++ b/src/s_csinh.c @@ -38,7 +38,7 @@ //__FBSDID("$FreeBSD: src/lib/msun/src/s_csinh.c,v 1.2 2011/10/21 06:29:32 das Exp $"); #include -#include +#include #include "math_private.h" diff --git a/src/s_csinhf.c b/src/s_csinhf.c index 69d6425..3769065 100644 --- a/src/s_csinhf.c +++ b/src/s_csinhf.c @@ -32,7 +32,7 @@ //__FBSDID("$FreeBSD: src/lib/msun/src/s_csinhf.c,v 1.2 2011/10/21 06:29:32 das Exp $"); #include -#include +#include #include "math_private.h" diff --git a/src/s_csqrt.c b/src/s_csqrt.c index 4dae287..b00d2ba 100644 --- a/src/s_csqrt.c +++ b/src/s_csqrt.c @@ -29,7 +29,7 @@ #include #include -#include +#include #include "math_private.h" diff --git a/src/s_csqrtf.c b/src/s_csqrtf.c index e7c6b2d..378b205 100644 --- a/src/s_csqrtf.c +++ b/src/s_csqrtf.c @@ -28,7 +28,7 @@ //__FBSDID("$FreeBSD: src/lib/msun/src/s_csqrtf.c,v 1.3 2008/08/08 00:15:16 das Exp $"); #include -#include +#include #include "math_private.h" diff --git a/src/s_csqrtl.c b/src/s_csqrtl.c index de64ed7..097ea6d 100644 --- a/src/s_csqrtl.c +++ b/src/s_csqrtl.c @@ -29,7 +29,7 @@ #include #include -#include +#include #include "math_private.h" diff --git a/src/s_ctanh.c b/src/s_ctanh.c index 4d036cc..d72ef7e 100644 --- a/src/s_ctanh.c +++ b/src/s_ctanh.c @@ -67,7 +67,7 @@ //__FBSDID("$FreeBSD: src/lib/msun/src/s_ctanh.c,v 1.2 2011/10/21 06:30:16 das Exp $"); #include -#include +#include #include "math_private.h" diff --git a/src/s_ctanhf.c b/src/s_ctanhf.c index bf09881..41ea4bc 100644 --- a/src/s_ctanhf.c +++ b/src/s_ctanhf.c @@ -32,7 +32,7 @@ //__FBSDID("$FreeBSD: src/lib/msun/src/s_ctanhf.c,v 1.2 2011/10/21 06:30:16 das Exp $"); #include -#include +#include #include "math_private.h" diff --git a/src/s_erf.c b/src/s_erf.c index 1fe0e6d..ce25a75 100644 --- a/src/s_erf.c +++ b/src/s_erf.c @@ -108,7 +108,7 @@ */ -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const double diff --git a/src/s_erff.c b/src/s_erff.c index 9d6c6df..4589442 100644 --- a/src/s_erff.c +++ b/src/s_erff.c @@ -16,7 +16,7 @@ #include //__FBSDID("$FreeBSD: src/lib/msun/src/s_erff.c,v 1.8 2008/02/22 02:30:35 das Exp $"); -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const float diff --git a/src/s_exp2.c b/src/s_exp2.c index b4f5e5c..0844018 100644 --- a/src/s_exp2.c +++ b/src/s_exp2.c @@ -29,7 +29,7 @@ #include -#include "math.h" +#include "openlibm.h" #include "math_private.h" #define TBLBITS 8 diff --git a/src/s_exp2f.c b/src/s_exp2f.c index 8df3fb5..7894d48 100644 --- a/src/s_exp2f.c +++ b/src/s_exp2f.c @@ -29,7 +29,7 @@ #include -#include "math.h" +#include "openlibm.h" #include "math_private.h" #define TBLBITS 4 diff --git a/src/s_expm1.c b/src/s_expm1.c index c58822c..8ee07a8 100644 --- a/src/s_expm1.c +++ b/src/s_expm1.c @@ -110,7 +110,7 @@ #include -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const double diff --git a/src/s_expm1f.c b/src/s_expm1f.c index 22d6d7b..7bfbda6 100644 --- a/src/s_expm1f.c +++ b/src/s_expm1f.c @@ -18,7 +18,7 @@ #include -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const float diff --git a/src/s_fabs.c b/src/s_fabs.c index 0dfa940..06688b0 100644 --- a/src/s_fabs.c +++ b/src/s_fabs.c @@ -18,7 +18,7 @@ static char rcsid[] = "$FreeBSD: src/lib/msun/src/s_fabs.c,v 1.7 2002/05/28 18:1 * fabs(x) returns the absolute value of x. */ -#include "math.h" +#include "openlibm.h" #include "math_private.h" double diff --git a/src/s_fabsf.c b/src/s_fabsf.c index 1ed0062..d1e0bdf 100644 --- a/src/s_fabsf.c +++ b/src/s_fabsf.c @@ -20,7 +20,7 @@ * fabsf(x) returns the absolute value of x. */ -#include "math.h" +#include "openlibm.h" #include "math_private.h" float diff --git a/src/s_fabsl.c b/src/s_fabsl.c index 200a9a5..d4e1a71 100644 --- a/src/s_fabsl.c +++ b/src/s_fabsl.c @@ -28,9 +28,9 @@ * $FreeBSD: src/lib/msun/src/s_fabsl.c,v 1.2 2003/10/25 19:53:28 des Exp $ */ -#include +#include -#include "fpmath.h" +#include "fpopenlibm.h" long double fabsl(long double x) diff --git a/src/s_fdim.c b/src/s_fdim.c index a9aae1b..ffa86e5 100644 --- a/src/s_fdim.c +++ b/src/s_fdim.c @@ -27,7 +27,7 @@ #include //__FBSDID("$FreeBSD: src/lib/msun/src/s_fdim.c,v 1.1 2004/06/30 07:04:01 das Exp $"); -#include +#include #define DECL(type, fn) \ type \ diff --git a/src/s_finite.c b/src/s_finite.c index c59d554..fd7a94f 100644 --- a/src/s_finite.c +++ b/src/s_finite.c @@ -18,7 +18,7 @@ * no branching! */ -#include "math.h" +#include "openlibm.h" #include "math_private.h" int finite(double x) diff --git a/src/s_finitef.c b/src/s_finitef.c index 6e95a41..8b19233 100644 --- a/src/s_finitef.c +++ b/src/s_finitef.c @@ -21,7 +21,7 @@ * no branching! */ -#include "math.h" +#include "openlibm.h" #include "math_private.h" int finitef(float x) diff --git a/src/s_floor.c b/src/s_floor.c index 3af0ca8..615c995 100644 --- a/src/s_floor.c +++ b/src/s_floor.c @@ -24,7 +24,7 @@ #include -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const double huge = 1.0e300; diff --git a/src/s_floorf.c b/src/s_floorf.c index 51682a1..4348a86 100644 --- a/src/s_floorf.c +++ b/src/s_floorf.c @@ -25,7 +25,7 @@ * Inexact flag raised if x not equal to floorf(x). */ -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const float huge = 1.0e30; diff --git a/src/s_floorl.c b/src/s_floorl.c index 4ae50a1..ce091b6 100644 --- a/src/s_floorl.c +++ b/src/s_floorl.c @@ -24,10 +24,10 @@ */ #include -#include +#include #include -#include "fpmath.h" +#include "fpopenlibm.h" #ifdef LDBL_IMPLICIT_NBIT #define MANH_SIZE (LDBL_MANH_SIZE + 1) diff --git a/src/s_fma.c b/src/s_fma.c index 6c59a4e..616f4a4 100644 --- a/src/s_fma.c +++ b/src/s_fma.c @@ -29,7 +29,7 @@ #include #include -#include +#include #include "math_private.h" diff --git a/src/s_fmaf.c b/src/s_fmaf.c index 1cac822..2d0f33b 100644 --- a/src/s_fmaf.c +++ b/src/s_fmaf.c @@ -29,7 +29,7 @@ #include -#include "math.h" +#include "openlibm.h" #include "math_private.h" /* diff --git a/src/s_fmal.c b/src/s_fmal.c index df83bd0..86206a2 100644 --- a/src/s_fmal.c +++ b/src/s_fmal.c @@ -29,9 +29,9 @@ #include #include -#include +#include -#include "fpmath.h" +#include "fpopenlibm.h" /* * A struct dd represents a floating-point number with twice the precision diff --git a/src/s_fmax.c b/src/s_fmax.c index c95dc43..fea0708 100644 --- a/src/s_fmax.c +++ b/src/s_fmax.c @@ -27,9 +27,9 @@ #include //__FBSDID("$FreeBSD: src/lib/msun/src/s_fmax.c,v 1.1 2004/06/30 07:04:01 das Exp $"); -#include +#include -#include "fpmath.h" +#include "fpopenlibm.h" double fmax(double x, double y) diff --git a/src/s_fmaxf.c b/src/s_fmaxf.c index 4c20472..7c22f3e 100644 --- a/src/s_fmaxf.c +++ b/src/s_fmaxf.c @@ -27,9 +27,9 @@ #include //__FBSDID("$FreeBSD: src/lib/msun/src/s_fmaxf.c,v 1.1 2004/06/30 07:04:01 das Exp $"); -#include +#include -#include "fpmath.h" +#include "fpopenlibm.h" float fmaxf(float x, float y) diff --git a/src/s_fmaxl.c b/src/s_fmaxl.c index aa4b119..959ae73 100644 --- a/src/s_fmaxl.c +++ b/src/s_fmaxl.c @@ -27,9 +27,9 @@ #include //__FBSDID("$FreeBSD: src/lib/msun/src/s_fmaxl.c,v 1.1 2004/06/30 07:04:01 das Exp $"); -#include +#include -#include "fpmath.h" +#include "fpopenlibm.h" long double fmaxl(long double x, long double y) diff --git a/src/s_fmin.c b/src/s_fmin.c index edf3ac8..bfe8ca5 100644 --- a/src/s_fmin.c +++ b/src/s_fmin.c @@ -27,9 +27,9 @@ #include //__FBSDID("$FreeBSD: src/lib/msun/src/s_fmin.c,v 1.1 2004/06/30 07:04:01 das Exp $"); -#include +#include -#include "fpmath.h" +#include "fpopenlibm.h" double fmin(double x, double y) diff --git a/src/s_fminf.c b/src/s_fminf.c index 3d53d4d..868dc0f 100644 --- a/src/s_fminf.c +++ b/src/s_fminf.c @@ -27,9 +27,9 @@ #include //__FBSDID("$FreeBSD: src/lib/msun/src/s_fminf.c,v 1.1 2004/06/30 07:04:01 das Exp $"); -#include +#include -#include "fpmath.h" +#include "fpopenlibm.h" float fminf(float x, float y) diff --git a/src/s_fminl.c b/src/s_fminl.c index acf1b69..0530e3c 100644 --- a/src/s_fminl.c +++ b/src/s_fminl.c @@ -27,9 +27,9 @@ #include //__FBSDID("$FreeBSD: src/lib/msun/src/s_fminl.c,v 1.1 2004/06/30 07:04:01 das Exp $"); -#include +#include -#include "fpmath.h" +#include "fpopenlibm.h" long double fminl(long double x, long double y) diff --git a/src/s_frexp.c b/src/s_frexp.c index b4a3b28..944300e 100644 --- a/src/s_frexp.c +++ b/src/s_frexp.c @@ -25,7 +25,7 @@ #include -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const double diff --git a/src/s_frexpf.c b/src/s_frexpf.c index d66f9d9..439888f 100644 --- a/src/s_frexpf.c +++ b/src/s_frexpf.c @@ -16,7 +16,7 @@ #include //__FBSDID("$FreeBSD: src/lib/msun/src/s_frexpf.c,v 1.10 2008/02/22 02:30:35 das Exp $"); -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const float diff --git a/src/s_frexpl.c b/src/s_frexpl.c index 20b3167..d550c77 100644 --- a/src/s_frexpl.c +++ b/src/s_frexpl.c @@ -27,9 +27,9 @@ */ #include -#include +#include -#include "fpmath.h" +#include "fpopenlibm.h" #if LDBL_MAX_EXP != 0x4000 #error "Unsupported long double format" diff --git a/src/s_ilogb.c b/src/s_ilogb.c index 0fe57ed..619aed3 100644 --- a/src/s_ilogb.c +++ b/src/s_ilogb.c @@ -22,7 +22,7 @@ #include -#include "math.h" +#include "openlibm.h" #include "math_private.h" int ilogb(double x) diff --git a/src/s_ilogbf.c b/src/s_ilogbf.c index 6894dc2..cc01195 100644 --- a/src/s_ilogbf.c +++ b/src/s_ilogbf.c @@ -18,7 +18,7 @@ #include -#include "math.h" +#include "openlibm.h" #include "math_private.h" int ilogbf(float x) diff --git a/src/s_ilogbl.c b/src/s_ilogbl.c index 99896bf..48da3c7 100644 --- a/src/s_ilogbl.c +++ b/src/s_ilogbl.c @@ -15,9 +15,9 @@ #include #include -#include +#include -#include "fpmath.h" +#include "fpopenlibm.h" int ilogbl(long double x) diff --git a/src/s_isfinite.c b/src/s_isfinite.c index 394505d..5103e9a 100644 --- a/src/s_isfinite.c +++ b/src/s_isfinite.c @@ -26,9 +26,9 @@ * $FreeBSD: src/lib/msun/src/s_isfinite.c,v 1.1 2004/07/09 03:32:39 das Exp $ */ -#include +#include -#include "fpmath.h" +#include "fpopenlibm.h" int __isfinite(double d) diff --git a/src/s_isnan.c b/src/s_isnan.c index 8b6e471..aad7d22 100644 --- a/src/s_isnan.c +++ b/src/s_isnan.c @@ -26,9 +26,9 @@ * $FreeBSD: src/lib/msun/src/s_isnan.c,v 1.9 2010/06/12 17:32:05 das Exp $ */ -#include +#include -#include "fpmath.h" +#include "fpopenlibm.h" /* Provided by libc */ #if 0 diff --git a/src/s_isnormal.c b/src/s_isnormal.c index 1345dba..741355b 100644 --- a/src/s_isnormal.c +++ b/src/s_isnormal.c @@ -26,9 +26,9 @@ * $FreeBSD: src/lib/msun/src/s_isnormal.c,v 1.1 2004/07/09 03:32:39 das Exp $ */ -#include +#include -#include "fpmath.h" +#include "fpopenlibm.h" int __isnormal(double d) diff --git a/src/s_log1p.c b/src/s_log1p.c index 85c8159..bb7aef6 100644 --- a/src/s_log1p.c +++ b/src/s_log1p.c @@ -80,7 +80,7 @@ #include -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const double diff --git a/src/s_log1pf.c b/src/s_log1pf.c index e5cc03a..73f0bb5 100644 --- a/src/s_log1pf.c +++ b/src/s_log1pf.c @@ -18,7 +18,7 @@ #include -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const float diff --git a/src/s_logb.c b/src/s_logb.c index 999a23e..e43b26c 100644 --- a/src/s_logb.c +++ b/src/s_logb.c @@ -21,7 +21,7 @@ #include -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const double diff --git a/src/s_logbf.c b/src/s_logbf.c index 263ef3b..28e4942 100644 --- a/src/s_logbf.c +++ b/src/s_logbf.c @@ -16,7 +16,7 @@ #include //__FBSDID("$FreeBSD: src/lib/msun/src/s_logbf.c,v 1.9 2008/02/22 02:30:35 das Exp $"); -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const float diff --git a/src/s_logbl.c b/src/s_logbl.c index 4762325..fbbfa0e 100644 --- a/src/s_logbl.c +++ b/src/s_logbl.c @@ -16,9 +16,9 @@ static char rcsid[] = "$FreeBSD: src/lib/msun/src/s_logbl.c,v 1.1 2007/12/17 03: #include #include -#include +#include -#include "fpmath.h" +#include "fpopenlibm.h" long double logbl(long double x) diff --git a/src/s_lrint.c b/src/s_lrint.c index d9aee8b..cf4fd2e 100644 --- a/src/s_lrint.c +++ b/src/s_lrint.c @@ -26,7 +26,7 @@ #include #include -#include +#include #ifndef type //__FBSDID("$FreeBSD: src/lib/msun/src/s_lrint.c,v 1.1 2005/01/11 23:12:55 das Exp $"); diff --git a/src/s_lround.c b/src/s_lround.c index 8740ee6..610e11f 100644 --- a/src/s_lround.c +++ b/src/s_lround.c @@ -27,7 +27,7 @@ #include #include #include -#include +#include #ifndef type //__FBSDID("$FreeBSD: src/lib/msun/src/s_lround.c,v 1.2 2005/04/08 00:52:16 das Exp $"); diff --git a/src/s_modf.c b/src/s_modf.c index 9f4a9e8..692e025 100644 --- a/src/s_modf.c +++ b/src/s_modf.c @@ -24,7 +24,7 @@ static char rcsid[] = "$FreeBSD: src/lib/msun/src/s_modf.c,v 1.8 2007/01/06 21:2 * No exception. */ -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const double one = 1.0; diff --git a/src/s_modff.c b/src/s_modff.c index e3ae0dd..49d3bb7 100644 --- a/src/s_modff.c +++ b/src/s_modff.c @@ -16,7 +16,7 @@ #include //__FBSDID("$FreeBSD: src/lib/msun/src/s_modff.c,v 1.9 2008/02/22 02:30:35 das Exp $"); -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const float one = 1.0; diff --git a/src/s_modfl.c b/src/s_modfl.c index a298f97..daddd66 100644 --- a/src/s_modfl.c +++ b/src/s_modfl.c @@ -37,10 +37,10 @@ */ #include -#include +#include #include -#include "fpmath.h" +#include "fpopenlibm.h" #if LDBL_MANL_SIZE > 32 #define MASK ((uint64_t)-1) diff --git a/src/s_nan.c b/src/s_nan.c index db928a5..6093377 100644 --- a/src/s_nan.c +++ b/src/s_nan.c @@ -29,7 +29,7 @@ #include #include #include -#include +#include #include #include diff --git a/src/s_nearbyint.c b/src/s_nearbyint.c index 362adfe..77f3c9d 100644 --- a/src/s_nearbyint.c +++ b/src/s_nearbyint.c @@ -28,7 +28,7 @@ //__FBSDID("$FreeBSD: src/lib/msun/src/s_nearbyint.c,v 1.2 2008/01/14 02:12:06 das Exp $"); #include -#include +#include /* * We save and restore the floating-point environment to avoid raising diff --git a/src/s_nextafter.c b/src/s_nextafter.c index ec48c04..b3d74aa 100644 --- a/src/s_nextafter.c +++ b/src/s_nextafter.c @@ -22,7 +22,7 @@ #include -#include "math.h" +#include "openlibm.h" #include "math_private.h" double diff --git a/src/s_nextafterf.c b/src/s_nextafterf.c index c9622b7..94c8720 100644 --- a/src/s_nextafterf.c +++ b/src/s_nextafterf.c @@ -16,7 +16,7 @@ #include //__FBSDID("$FreeBSD: src/lib/msun/src/s_nextafterf.c,v 1.11 2008/02/22 02:30:35 das Exp $"); -#include "math.h" +#include "openlibm.h" #include "math_private.h" float diff --git a/src/s_nextafterl.c b/src/s_nextafterl.c index afc30d1..f33f4bf 100644 --- a/src/s_nextafterl.c +++ b/src/s_nextafterl.c @@ -22,8 +22,8 @@ #include -#include "fpmath.h" -#include "math.h" +#include "fpopenlibm.h" +#include "openlibm.h" #include "math_private.h" #if LDBL_MAX_EXP != 0x4000 diff --git a/src/s_nexttoward.c b/src/s_nexttoward.c index 803bc34..661599e 100644 --- a/src/s_nexttoward.c +++ b/src/s_nexttoward.c @@ -21,8 +21,8 @@ #include -#include "fpmath.h" -#include "math.h" +#include "fpopenlibm.h" +#include "openlibm.h" #include "math_private.h" #if LDBL_MAX_EXP != 0x4000 diff --git a/src/s_nexttowardf.c b/src/s_nexttowardf.c index 2791fea..82766b9 100644 --- a/src/s_nexttowardf.c +++ b/src/s_nexttowardf.c @@ -14,8 +14,8 @@ #include -#include "fpmath.h" -#include "math.h" +#include "fpopenlibm.h" +#include "openlibm.h" #include "math_private.h" #define LDBL_INFNAN_EXP (LDBL_MAX_EXP * 2 - 1) diff --git a/src/s_remquo.c b/src/s_remquo.c index ee275df..418ebc0 100644 --- a/src/s_remquo.c +++ b/src/s_remquo.c @@ -15,7 +15,7 @@ #include -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const double Zero[] = {0.0, -0.0,}; diff --git a/src/s_remquof.c b/src/s_remquof.c index f5ff3ae..1cd74c4 100644 --- a/src/s_remquof.c +++ b/src/s_remquof.c @@ -13,7 +13,7 @@ #include //__FBSDID("$FreeBSD: src/lib/msun/src/s_remquof.c,v 1.1 2005/03/25 04:40:44 das Exp $"); -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const float Zero[] = {0.0, -0.0,}; diff --git a/src/s_remquol.c b/src/s_remquol.c index 5062182..f1218a4 100644 --- a/src/s_remquol.c +++ b/src/s_remquol.c @@ -16,8 +16,8 @@ #include #include -#include "fpmath.h" -#include "math.h" +#include "fpopenlibm.h" +#include "openlibm.h" #include "math_private.h" #define BIAS (LDBL_MAX_EXP - 1) diff --git a/src/s_rint.c b/src/s_rint.c index e295d44..5f99aa3 100644 --- a/src/s_rint.c +++ b/src/s_rint.c @@ -25,7 +25,7 @@ #include -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const double diff --git a/src/s_rintf.c b/src/s_rintf.c index be02312..7aa8a60 100644 --- a/src/s_rintf.c +++ b/src/s_rintf.c @@ -19,7 +19,7 @@ #include #include -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const float diff --git a/src/s_rintl.c b/src/s_rintl.c index 2a69529..9272abc 100644 --- a/src/s_rintl.c +++ b/src/s_rintl.c @@ -28,9 +28,9 @@ //__FBSDID("$FreeBSD: src/lib/msun/src/s_rintl.c,v 1.5 2008/02/22 11:59:05 bde Exp $"); #include -#include +#include -#include "fpmath.h" +#include "fpopenlibm.h" #if LDBL_MAX_EXP != 0x4000 /* We also require the usual bias, min exp and expsign packing. */ diff --git a/src/s_round.c b/src/s_round.c index 2e66703..15fb9ba 100644 --- a/src/s_round.c +++ b/src/s_round.c @@ -27,7 +27,7 @@ #include //__FBSDID("$FreeBSD: src/lib/msun/src/s_round.c,v 1.4 2005/12/02 13:45:06 bde Exp $"); -#include +#include double round(double x) diff --git a/src/s_roundf.c b/src/s_roundf.c index 1782c5c..2b016a9 100644 --- a/src/s_roundf.c +++ b/src/s_roundf.c @@ -27,7 +27,7 @@ #include //__FBSDID("$FreeBSD: src/lib/msun/src/s_roundf.c,v 1.4 2005/12/02 13:45:06 bde Exp $"); -#include +#include float roundf(float x) diff --git a/src/s_roundl.c b/src/s_roundl.c index cea99cd..deaf54f 100644 --- a/src/s_roundl.c +++ b/src/s_roundl.c @@ -27,7 +27,7 @@ #include //__FBSDID("$FreeBSD: src/lib/msun/src/s_roundl.c,v 1.2 2005/12/02 13:45:06 bde Exp $"); -#include +#include long double roundl(long double x) diff --git a/src/s_scalbln.c b/src/s_scalbln.c index bd81210..515d009 100644 --- a/src/s_scalbln.c +++ b/src/s_scalbln.c @@ -28,7 +28,7 @@ //__FBSDID("$FreeBSD: src/lib/msun/src/s_scalbln.c,v 1.2 2005/03/07 04:57:50 das Exp $"); #include -#include +#include double scalbln (double x, long n) diff --git a/src/s_scalbn.c b/src/s_scalbn.c index ed5b571..5ba3696 100644 --- a/src/s_scalbn.c +++ b/src/s_scalbn.c @@ -24,7 +24,7 @@ static char rcsid[] = "$FreeBSD: src/lib/msun/src/s_scalbn.c,v 1.11 2005/03/07 2 #include #include -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const double diff --git a/src/s_scalbnf.c b/src/s_scalbnf.c index 46c7baf..27c0d51 100644 --- a/src/s_scalbnf.c +++ b/src/s_scalbnf.c @@ -19,7 +19,7 @@ static char rcsid[] = "$FreeBSD: src/lib/msun/src/s_scalbnf.c,v 1.8 2005/03/07 0 #include -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const float diff --git a/src/s_scalbnl.c b/src/s_scalbnl.c index c645d00..55678dd 100644 --- a/src/s_scalbnl.c +++ b/src/s_scalbnl.c @@ -29,9 +29,9 @@ static char rcsid[] = "$FreeBSD: src/lib/msun/src/s_scalbnl.c,v 1.1 2005/03/07 0 #include #include -#include +#include -#include "fpmath.h" +#include "fpopenlibm.h" #if LDBL_MAX_EXP != 0x4000 #error "Unsupported long double format" diff --git a/src/s_signbit.c b/src/s_signbit.c index ffc08f3..0946003 100644 --- a/src/s_signbit.c +++ b/src/s_signbit.c @@ -26,9 +26,9 @@ * $FreeBSD: src/lib/msun/src/s_signbit.c,v 1.1 2004/07/19 08:16:10 das Exp $ */ -#include +#include -#include "fpmath.h" +#include "fpopenlibm.h" int __signbit(double d) diff --git a/src/s_signgam.c b/src/s_signgam.c index d67d591..b5650f6 100644 --- a/src/s_signgam.c +++ b/src/s_signgam.c @@ -1,3 +1,3 @@ -#include "math.h" +#include "openlibm.h" #include "math_private.h" int signgam = 0; diff --git a/src/s_significand.c b/src/s_significand.c index 5c2b381..4a6704b 100644 --- a/src/s_significand.c +++ b/src/s_significand.c @@ -19,7 +19,7 @@ * for exercising the fraction-part(F) IEEE 754-1985 test vector. */ -#include "math.h" +#include "openlibm.h" #include "math_private.h" double diff --git a/src/s_significandf.c b/src/s_significandf.c index f10bcea..632221a 100644 --- a/src/s_significandf.c +++ b/src/s_significandf.c @@ -16,7 +16,7 @@ #include //__FBSDID("$FreeBSD: src/lib/msun/src/s_significandf.c,v 1.8 2008/02/22 02:30:36 das Exp $"); -#include "math.h" +#include "openlibm.h" #include "math_private.h" float diff --git a/src/s_sin.c b/src/s_sin.c index 6af4c0c..664fe14 100644 --- a/src/s_sin.c +++ b/src/s_sin.c @@ -46,7 +46,7 @@ #include -#include "math.h" +#include "openlibm.h" #define INLINE_REM_PIO2 #include "math_private.h" #include "e_rem_pio2.c" diff --git a/src/s_sinf.c b/src/s_sinf.c index b0577bd..b5bbf28 100644 --- a/src/s_sinf.c +++ b/src/s_sinf.c @@ -19,7 +19,7 @@ #include -#include "math.h" +#include "openlibm.h" #define INLINE_KERNEL_COSDF #define INLINE_KERNEL_SINDF #define INLINE_REM_PIO2F diff --git a/src/s_sinl.c b/src/s_sinl.c index d7f7de9..e536554 100644 --- a/src/s_sinl.c +++ b/src/s_sinl.c @@ -29,7 +29,7 @@ #include -#include "math.h" +#include "openlibm.h" #include "math_private.h" #if LDBL_MANT_DIG == 64 #include "../ld80/e_rem_pio2l.h" diff --git a/src/s_tan.c b/src/s_tan.c index 6b5b278..96ca470 100644 --- a/src/s_tan.c +++ b/src/s_tan.c @@ -45,7 +45,7 @@ #include -#include "math.h" +#include "openlibm.h" #define INLINE_REM_PIO2 #include "math_private.h" #include "e_rem_pio2.c" diff --git a/src/s_tanf.c b/src/s_tanf.c index e918c0b..06794e7 100644 --- a/src/s_tanf.c +++ b/src/s_tanf.c @@ -19,7 +19,7 @@ #include -#include "math.h" +#include "openlibm.h" #define INLINE_KERNEL_TANDF #define INLINE_REM_PIO2F #include "math_private.h" diff --git a/src/s_tanh.c b/src/s_tanh.c index 8c22ddd..fc8e4ac 100644 --- a/src/s_tanh.c +++ b/src/s_tanh.c @@ -37,7 +37,7 @@ * only tanh(0)=0 is exact for finite argument. */ -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const double one = 1.0, two = 2.0, tiny = 1.0e-300, huge = 1.0e300; diff --git a/src/s_tanhf.c b/src/s_tanhf.c index 357111b..e844c57 100644 --- a/src/s_tanhf.c +++ b/src/s_tanhf.c @@ -16,7 +16,7 @@ #include //__FBSDID("$FreeBSD: src/lib/msun/src/s_tanhf.c,v 1.9 2008/02/22 02:30:36 das Exp $"); -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const float one=1.0, two=2.0, tiny = 1.0e-30, huge = 1.0e30; diff --git a/src/s_tanl.c b/src/s_tanl.c index 61f3118..909be87 100644 --- a/src/s_tanl.c +++ b/src/s_tanl.c @@ -35,7 +35,7 @@ #include -#include "math.h" +#include "openlibm.h" #include "math_private.h" #if LDBL_MANT_DIG == 64 #include "../ld80/e_rem_pio2l.h" diff --git a/src/s_tgammaf.c b/src/s_tgammaf.c index 221bb9b..312b8bd 100644 --- a/src/s_tgammaf.c +++ b/src/s_tgammaf.c @@ -27,7 +27,7 @@ #include //__FBSDID("$FreeBSD: src/lib/msun/src/s_tgammaf.c,v 1.1 2008/02/18 17:27:10 das Exp $"); -#include +#include /* * We simply call tgamma() rather than bloating the math library with diff --git a/src/s_trunc.c b/src/s_trunc.c index 3feab2c..cacc89d 100644 --- a/src/s_trunc.c +++ b/src/s_trunc.c @@ -24,7 +24,7 @@ #include -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const double huge = 1.0e300; diff --git a/src/s_truncf.c b/src/s_truncf.c index b168bbd..423dd33 100644 --- a/src/s_truncf.c +++ b/src/s_truncf.c @@ -22,7 +22,7 @@ * Inexact flag raised if x not equal to truncf(x). */ -#include "math.h" +#include "openlibm.h" #include "math_private.h" static const float huge = 1.0e30F; diff --git a/src/s_truncl.c b/src/s_truncl.c index 2c76bb8..9638155 100644 --- a/src/s_truncl.c +++ b/src/s_truncl.c @@ -24,10 +24,10 @@ */ #include -#include +#include #include -#include "fpmath.h" +#include "fpopenlibm.h" #ifdef LDBL_IMPLICIT_NBIT #define MANH_SIZE (LDBL_MANH_SIZE + 1) diff --git a/src/w_cabs.c b/src/w_cabs.c index fdf7868..46f25d6 100644 --- a/src/w_cabs.c +++ b/src/w_cabs.c @@ -10,7 +10,7 @@ #include #include -#include +#include double cabs(double complex z) diff --git a/src/w_cabsf.c b/src/w_cabsf.c index fac152f..8df96b7 100644 --- a/src/w_cabsf.c +++ b/src/w_cabsf.c @@ -11,7 +11,7 @@ static const char rcsid[] = #endif /* not lint */ #include -#include +#include #include "math_private.h" float diff --git a/src/w_cabsl.c b/src/w_cabsl.c index 1bd5752..80e634a 100644 --- a/src/w_cabsl.c +++ b/src/w_cabsl.c @@ -11,7 +11,7 @@ //__FBSDID("$FreeBSD: src/lib/msun/src/w_cabsl.c,v 1.1 2008/03/30 20:02:03 das Exp $"); #include -#include +#include long double cabsl(long double complex z) diff --git a/src/w_drem.c b/src/w_drem.c index 0f68409..010f143 100644 --- a/src/w_drem.c +++ b/src/w_drem.c @@ -5,7 +5,7 @@ * Placed into the Public Domain, 1994. */ -#include +#include double drem(x, y) diff --git a/src/w_dremf.c b/src/w_dremf.c index e83ac0e..37d584a 100644 --- a/src/w_dremf.c +++ b/src/w_dremf.c @@ -6,7 +6,7 @@ */ /* $FreeBSD: src/lib/msun/src/w_dremf.c,v 1.3 2004/07/28 05:53:18 kan Exp $ */ -#include "math.h" +#include "openlibm.h" #include "math_private.h" float