123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813 |
- diff --git a/modules/fdlibm/src/e_acos.cpp b/modules/fdlibm/src/e_acos.cpp
- --- a/modules/fdlibm/src/e_acos.cpp
- +++ b/modules/fdlibm/src/e_acos.cpp
- @@ -6,18 +6,18 @@
- *
- * Developed at SunSoft, a Sun Microsystems, Inc. business.
- * Permission to use, copy, modify, and distribute this
- * software is freely granted, provided that this notice
- * is preserved.
- * ====================================================
- */
-
- -#include <sys/cdefs.h>
- -__FBSDID("$FreeBSD$");
- +//#include <sys/cdefs.h>
- +//__FBSDID("$FreeBSD$");
-
- /* __ieee754_acos(x)
- * Method :
- * acos(x) = pi/2 - asin(x)
- * acos(-x) = pi/2 + asin(x)
- * For |x|<=0.5
- * acos(x) = pi/2 - (x + x*x^2*R(x^2)) (see asin.c)
- * For x>0.5
- diff --git a/modules/fdlibm/src/e_acosh.cpp b/modules/fdlibm/src/e_acosh.cpp
- --- a/modules/fdlibm/src/e_acosh.cpp
- +++ b/modules/fdlibm/src/e_acosh.cpp
- @@ -7,18 +7,18 @@
- * Developed at SunSoft, a Sun Microsystems, Inc. business.
- * Permission to use, copy, modify, and distribute this
- * software is freely granted, provided that this notice
- * is preserved.
- * ====================================================
- *
- */
-
- -#include <sys/cdefs.h>
- -__FBSDID("$FreeBSD$");
- +//#include <sys/cdefs.h>
- +//__FBSDID("$FreeBSD$");
-
- /* __ieee754_acosh(x)
- * Method :
- * Based on
- * acosh(x) = log [ x + sqrt(x*x-1) ]
- * we have
- * acosh(x) := log(x)+ln2, if x is large; else
- * acosh(x) := log(2x-1/(sqrt(x*x-1)+x)) if x>2; else
- diff --git a/modules/fdlibm/src/e_asin.cpp b/modules/fdlibm/src/e_asin.cpp
- --- a/modules/fdlibm/src/e_asin.cpp
- +++ b/modules/fdlibm/src/e_asin.cpp
- @@ -6,18 +6,18 @@
- *
- * Developed at SunSoft, a Sun Microsystems, Inc. business.
- * Permission to use, copy, modify, and distribute this
- * software is freely granted, provided that this notice
- * is preserved.
- * ====================================================
- */
-
- -#include <sys/cdefs.h>
- -__FBSDID("$FreeBSD$");
- +//#include <sys/cdefs.h>
- +//__FBSDID("$FreeBSD$");
-
- /* __ieee754_asin(x)
- * Method :
- * Since asin(x) = x + x^3/6 + x^5*3/40 + x^7*15/336 + ...
- * we approximate asin(x) on [0,0.5] by
- * asin(x) = x + x*x^2*R(x^2)
- * where
- * R(x^2) is a rational approximation of (asin(x)-x)/x^3
- diff --git a/modules/fdlibm/src/e_atan2.cpp b/modules/fdlibm/src/e_atan2.cpp
- --- a/modules/fdlibm/src/e_atan2.cpp
- +++ b/modules/fdlibm/src/e_atan2.cpp
- @@ -7,18 +7,18 @@
- * Developed at SunSoft, a Sun Microsystems, Inc. business.
- * Permission to use, copy, modify, and distribute this
- * software is freely granted, provided that this notice
- * is preserved.
- * ====================================================
- *
- */
-
- -#include <sys/cdefs.h>
- -__FBSDID("$FreeBSD$");
- +//#include <sys/cdefs.h>
- +//__FBSDID("$FreeBSD$");
-
- /* __ieee754_atan2(y,x)
- * Method :
- * 1. Reduce y to positive by atan2(y,x)=-atan2(-y,x).
- * 2. Reduce x to positive by (if x and y are unexceptional):
- * ARG (x+iy) = arctan(y/x) ... if x > 0,
- * ARG (x+iy) = pi - arctan[y/(-x)] ... if x < 0,
- *
- diff --git a/modules/fdlibm/src/e_atanh.cpp b/modules/fdlibm/src/e_atanh.cpp
- --- a/modules/fdlibm/src/e_atanh.cpp
- +++ b/modules/fdlibm/src/e_atanh.cpp
- @@ -7,18 +7,18 @@
- * Developed at SunSoft, a Sun Microsystems, Inc. business.
- * Permission to use, copy, modify, and distribute this
- * software is freely granted, provided that this notice
- * is preserved.
- * ====================================================
- *
- */
-
- -#include <sys/cdefs.h>
- -__FBSDID("$FreeBSD$");
- +//#include <sys/cdefs.h>
- +//__FBSDID("$FreeBSD$");
-
- /* __ieee754_atanh(x)
- * Method :
- * 1.Reduced x to positive by atanh(-x) = -atanh(x)
- * 2.For x>=0.5
- * 1 2x x
- * atanh(x) = --- * log(1 + -------) = 0.5 * log1p(2 * --------)
- * 2 1 - x 1 - x
- diff --git a/modules/fdlibm/src/e_cosh.cpp b/modules/fdlibm/src/e_cosh.cpp
- --- a/modules/fdlibm/src/e_cosh.cpp
- +++ b/modules/fdlibm/src/e_cosh.cpp
- @@ -6,18 +6,18 @@
- *
- * Developed at SunSoft, a Sun Microsystems, Inc. business.
- * Permission to use, copy, modify, and distribute this
- * software is freely granted, provided that this notice
- * is preserved.
- * ====================================================
- */
-
- -#include <sys/cdefs.h>
- -__FBSDID("$FreeBSD$");
- +//#include <sys/cdefs.h>
- +//__FBSDID("$FreeBSD$");
-
- /* __ieee754_cosh(x)
- * Method :
- * mathematically cosh(x) if defined to be (exp(x)+exp(-x))/2
- * 1. Replace x by |x| (cosh(x) = cosh(-x)).
- * 2.
- * [ exp(x) - 1 ]^2
- * 0 <= x <= ln2/2 : cosh(x) := 1 + -------------------
- diff --git a/modules/fdlibm/src/e_exp.cpp b/modules/fdlibm/src/e_exp.cpp
- --- a/modules/fdlibm/src/e_exp.cpp
- +++ b/modules/fdlibm/src/e_exp.cpp
- @@ -5,18 +5,18 @@
- * Copyright (C) 2004 by Sun Microsystems, Inc. All rights reserved.
- *
- * Permission to use, copy, modify, and distribute this
- * software is freely granted, provided that this notice
- * is preserved.
- * ====================================================
- */
-
- -#include <sys/cdefs.h>
- -__FBSDID("$FreeBSD$");
- +//#include <sys/cdefs.h>
- +//__FBSDID("$FreeBSD$");
-
- /* __ieee754_exp(x)
- * Returns the exponential of x.
- *
- * Method
- * 1. Argument reduction:
- * Reduce x to an r so that |r| <= 0.5*ln2 ~ 0.34658.
- * Given x, find r and integer k such that
- diff --git a/modules/fdlibm/src/e_hypot.cpp b/modules/fdlibm/src/e_hypot.cpp
- --- a/modules/fdlibm/src/e_hypot.cpp
- +++ b/modules/fdlibm/src/e_hypot.cpp
- @@ -6,18 +6,18 @@
- *
- * Developed at SunSoft, a Sun Microsystems, Inc. business.
- * Permission to use, copy, modify, and distribute this
- * software is freely granted, provided that this notice
- * is preserved.
- * ====================================================
- */
-
- -#include <sys/cdefs.h>
- -__FBSDID("$FreeBSD$");
- +//#include <sys/cdefs.h>
- +//__FBSDID("$FreeBSD$");
-
- /* __ieee754_hypot(x,y)
- *
- * Method :
- * If (assume round-to-nearest) z=x*x+y*y
- * has error less than sqrt(2)/2 ulp, than
- * sqrt(z) has error less than 1 ulp (exercise).
- *
- diff --git a/modules/fdlibm/src/e_log.cpp b/modules/fdlibm/src/e_log.cpp
- --- a/modules/fdlibm/src/e_log.cpp
- +++ b/modules/fdlibm/src/e_log.cpp
- @@ -6,18 +6,18 @@
- *
- * Developed at SunSoft, a Sun Microsystems, Inc. business.
- * Permission to use, copy, modify, and distribute this
- * software is freely granted, provided that this notice
- * is preserved.
- * ====================================================
- */
-
- -#include <sys/cdefs.h>
- -__FBSDID("$FreeBSD$");
- +//#include <sys/cdefs.h>
- +//__FBSDID("$FreeBSD$");
-
- /* __ieee754_log(x)
- * Return the logrithm of x
- *
- * Method :
- * 1. Argument Reduction: find k and f such that
- * x = 2^k * (1+f),
- * where sqrt(2)/2 < 1+f < sqrt(2) .
- diff --git a/modules/fdlibm/src/e_log10.cpp b/modules/fdlibm/src/e_log10.cpp
- --- a/modules/fdlibm/src/e_log10.cpp
- +++ b/modules/fdlibm/src/e_log10.cpp
- @@ -6,32 +6,32 @@
- *
- * Developed at SunSoft, a Sun Microsystems, Inc. business.
- * Permission to use, copy, modify, and distribute this
- * software is freely granted, provided that this notice
- * is preserved.
- * ====================================================
- */
-
- -#include <sys/cdefs.h>
- -__FBSDID("$FreeBSD$");
- +//#include <sys/cdefs.h>
- +//__FBSDID("$FreeBSD$");
-
- /*
- * Return the base 10 logarithm of x. See e_log.c and k_log.h for most
- * comments.
- *
- * log10(x) = (f - 0.5*f*f + k_log1p(f)) / ln10 + k * log10(2)
- * in not-quite-routine extra precision.
- */
-
- #include <float.h>
-
- #include "math_private.h"
- #include "k_log.h"
- -
- +
- static const double
- two54 = 1.80143985094819840000e+16, /* 0x43500000, 0x00000000 */
- ivln10hi = 4.34294481878168880939e-01, /* 0x3fdbcb7b, 0x15200000 */
- ivln10lo = 2.50829467116452752298e-11, /* 0x3dbb9438, 0xca9aadd5 */
- log10_2hi = 3.01029995663611771306e-01, /* 0x3FD34413, 0x509F6000 */
- log10_2lo = 3.69423907715893078616e-13; /* 0x3D59FEF3, 0x11F12B36 */
-
- static const double zero = 0.0;
- diff --git a/modules/fdlibm/src/e_log2.cpp b/modules/fdlibm/src/e_log2.cpp
- --- a/modules/fdlibm/src/e_log2.cpp
- +++ b/modules/fdlibm/src/e_log2.cpp
- @@ -6,18 +6,18 @@
- *
- * Developed at SunSoft, a Sun Microsystems, Inc. business.
- * Permission to use, copy, modify, and distribute this
- * software is freely granted, provided that this notice
- * is preserved.
- * ====================================================
- */
-
- -#include <sys/cdefs.h>
- -__FBSDID("$FreeBSD$");
- +//#include <sys/cdefs.h>
- +//__FBSDID("$FreeBSD$");
-
- /*
- * Return the base 2 logarithm of x. See e_log.c and k_log.h for most
- * comments.
- *
- * This reduces x to {k, 1+f} exactly as in e_log.c, then calls the kernel,
- * then does the combining and scaling steps
- * log2(x) = (f - 0.5*f*f + k_log1p(f)) / ln2 + k
- diff --git a/modules/fdlibm/src/e_pow.cpp b/modules/fdlibm/src/e_pow.cpp
- --- a/modules/fdlibm/src/e_pow.cpp
- +++ b/modules/fdlibm/src/e_pow.cpp
- @@ -4,18 +4,18 @@
- * Copyright (C) 2004 by Sun Microsystems, Inc. All rights reserved.
- *
- * Permission to use, copy, modify, and distribute this
- * software is freely granted, provided that this notice
- * is preserved.
- * ====================================================
- */
-
- -#include <sys/cdefs.h>
- -__FBSDID("$FreeBSD$");
- +//#include <sys/cdefs.h>
- +//__FBSDID("$FreeBSD$");
-
- /* __ieee754_pow(x,y) return x**y
- *
- * n
- * Method: Let x = 2 * (1+f)
- * 1. Compute and return log2(x) in two pieces:
- * log2(x) = w1 + w2,
- * where w1 has 53-24 = 29 bit trailing zeros.
- diff --git a/modules/fdlibm/src/e_sinh.cpp b/modules/fdlibm/src/e_sinh.cpp
- --- a/modules/fdlibm/src/e_sinh.cpp
- +++ b/modules/fdlibm/src/e_sinh.cpp
- @@ -6,18 +6,18 @@
- *
- * Developed at SunSoft, a Sun Microsystems, Inc. business.
- * Permission to use, copy, modify, and distribute this
- * software is freely granted, provided that this notice
- * is preserved.
- * ====================================================
- */
-
- -#include <sys/cdefs.h>
- -__FBSDID("$FreeBSD$");
- +//#include <sys/cdefs.h>
- +//__FBSDID("$FreeBSD$");
-
- /* __ieee754_sinh(x)
- * Method :
- * mathematically sinh(x) if defined to be (exp(x)-exp(-x))/2
- * 1. Replace x by |x| (sinh(-x) = -sinh(x)).
- * 2.
- * E + E/(E+1)
- * 0 <= x <= 22 : sinh(x) := --------------, E=expm1(x)
- diff --git a/modules/fdlibm/src/k_exp.cpp b/modules/fdlibm/src/k_exp.cpp
- --- a/modules/fdlibm/src/k_exp.cpp
- +++ b/modules/fdlibm/src/k_exp.cpp
- @@ -21,22 +21,22 @@
- * 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.
- */
-
- -#include <sys/cdefs.h>
- -__FBSDID("$FreeBSD$");
- +//#include <sys/cdefs.h>
- +//__FBSDID("$FreeBSD$");
-
- #include <complex.h>
-
- -#include "math_private.h"
- + #include "math_private.h"
-
- static const uint32_t k = 1799; /* constant for reduction */
- static const double kln2 = 1246.97177782734161156; /* k * ln2 */
-
- /*
- * Compute exp(x), scaled to avoid spurious overflow. An exponent is
- * returned separately in 'expt'.
- *
- diff --git a/modules/fdlibm/src/k_log.h b/modules/fdlibm/src/k_log.h
- --- a/modules/fdlibm/src/k_log.h
- +++ b/modules/fdlibm/src/k_log.h
- @@ -6,18 +6,18 @@
- *
- * Developed at SunSoft, a Sun Microsystems, Inc. business.
- * Permission to use, copy, modify, and distribute this
- * software is freely granted, provided that this notice
- * is preserved.
- * ====================================================
- */
-
- -#include <sys/cdefs.h>
- -__FBSDID("$FreeBSD$");
- +//#include <sys/cdefs.h>
- +//__FBSDID("$FreeBSD$");
-
- /*
- * k_log1p(f):
- * Return log(1+f) - f for 1+f in ~[sqrt(2)/2, sqrt(2)].
- *
- * The following describes the overall strategy for computing
- * logarithms in base e. The argument reduction and adding the final
- * term of the polynomial are done by the caller for increased accuracy
- diff --git a/modules/fdlibm/src/s_asinh.cpp b/modules/fdlibm/src/s_asinh.cpp
- --- a/modules/fdlibm/src/s_asinh.cpp
- +++ b/modules/fdlibm/src/s_asinh.cpp
- @@ -5,18 +5,18 @@
- *
- * Developed at SunPro, a Sun Microsystems, Inc. business.
- * Permission to use, copy, modify, and distribute this
- * software is freely granted, provided that this notice
- * is preserved.
- * ====================================================
- */
-
- -#include <sys/cdefs.h>
- -__FBSDID("$FreeBSD$");
- +//#include <sys/cdefs.h>
- +//__FBSDID("$FreeBSD$");
-
- /* asinh(x)
- * Method :
- * Based on
- * asinh(x) = sign(x) * log [ |x| + sqrt(x*x+1) ]
- * we have
- * asinh(x) := x if 1+x*x=1,
- * := sign(x)*(log(x)+ln2)) for large |x|, else
- diff --git a/modules/fdlibm/src/s_atan.cpp b/modules/fdlibm/src/s_atan.cpp
- --- a/modules/fdlibm/src/s_atan.cpp
- +++ b/modules/fdlibm/src/s_atan.cpp
- @@ -5,18 +5,18 @@
- *
- * Developed at SunPro, a Sun Microsystems, Inc. business.
- * Permission to use, copy, modify, and distribute this
- * software is freely granted, provided that this notice
- * is preserved.
- * ====================================================
- */
-
- -#include <sys/cdefs.h>
- -__FBSDID("$FreeBSD$");
- +//#include <sys/cdefs.h>
- +//__FBSDID("$FreeBSD$");
-
- /* atan(x)
- * Method
- * 1. Reduce x to positive by atan(x) = -atan(-x).
- * 2. According to the integer k=4t+0.25 chopped, t=x, the argument
- * is further reduced to one of the following intervals and the
- * arctangent of t is evaluated by the corresponding formula:
- *
- diff --git a/modules/fdlibm/src/s_cbrt.cpp b/modules/fdlibm/src/s_cbrt.cpp
- --- a/modules/fdlibm/src/s_cbrt.cpp
- +++ b/modules/fdlibm/src/s_cbrt.cpp
- @@ -7,18 +7,18 @@
- * Permission to use, copy, modify, and distribute this
- * software is freely granted, provided that this notice
- * is preserved.
- * ====================================================
- *
- * Optimized by Bruce D. Evans.
- */
-
- -#include <sys/cdefs.h>
- -__FBSDID("$FreeBSD$");
- +//#include <sys/cdefs.h>
- +//__FBSDID("$FreeBSD$");
-
- #include <float.h>
- #include "math_private.h"
-
- /* cbrt(x)
- * Return cube root of x
- */
- static const u_int32_t
- diff --git a/modules/fdlibm/src/s_ceil.cpp b/modules/fdlibm/src/s_ceil.cpp
- --- a/modules/fdlibm/src/s_ceil.cpp
- +++ b/modules/fdlibm/src/s_ceil.cpp
- @@ -5,18 +5,18 @@
- *
- * Developed at SunPro, a Sun Microsystems, Inc. business.
- * Permission to use, copy, modify, and distribute this
- * software is freely granted, provided that this notice
- * is preserved.
- * ====================================================
- */
-
- -#include <sys/cdefs.h>
- -__FBSDID("$FreeBSD$");
- +//#include <sys/cdefs.h>
- +//__FBSDID("$FreeBSD$");
-
- /*
- * ceil(x)
- * Return x rounded toward -inf to integral value
- * Method:
- * Bit twiddling.
- * Exception:
- * Inexact flag raised if x not equal to ceil(x).
- diff --git a/modules/fdlibm/src/s_ceilf.cpp b/modules/fdlibm/src/s_ceilf.cpp
- --- a/modules/fdlibm/src/s_ceilf.cpp
- +++ b/modules/fdlibm/src/s_ceilf.cpp
- @@ -8,18 +8,18 @@
- *
- * Developed at SunPro, a Sun Microsystems, Inc. business.
- * Permission to use, copy, modify, and distribute this
- * software is freely granted, provided that this notice
- * is preserved.
- * ====================================================
- */
-
- -#include <sys/cdefs.h>
- -__FBSDID("$FreeBSD$");
- +//#include <sys/cdefs.h>
- +//__FBSDID("$FreeBSD$");
-
- #include "math_private.h"
-
- static const float huge = 1.0e30;
-
- float
- ceilf(float x)
- {
- diff --git a/modules/fdlibm/src/s_copysign.cpp b/modules/fdlibm/src/s_copysign.cpp
- --- a/modules/fdlibm/src/s_copysign.cpp
- +++ b/modules/fdlibm/src/s_copysign.cpp
- @@ -5,18 +5,18 @@
- *
- * Developed at SunPro, a Sun Microsystems, Inc. business.
- * Permission to use, copy, modify, and distribute this
- * software is freely granted, provided that this notice
- * is preserved.
- * ====================================================
- */
-
- -#include <sys/cdefs.h>
- -__FBSDID("$FreeBSD$");
- +//#include <sys/cdefs.h>
- +//__FBSDID("$FreeBSD$");
-
- /*
- * copysign(double x, double y)
- * copysign(x,y) returns a value with the magnitude of x and
- * with the sign bit of y.
- */
-
- #include "math_private.h"
- diff --git a/modules/fdlibm/src/s_expm1.cpp b/modules/fdlibm/src/s_expm1.cpp
- --- a/modules/fdlibm/src/s_expm1.cpp
- +++ b/modules/fdlibm/src/s_expm1.cpp
- @@ -5,18 +5,18 @@
- *
- * Developed at SunPro, a Sun Microsystems, Inc. business.
- * Permission to use, copy, modify, and distribute this
- * software is freely granted, provided that this notice
- * is preserved.
- * ====================================================
- */
-
- -#include <sys/cdefs.h>
- -__FBSDID("$FreeBSD$");
- +//#include <sys/cdefs.h>
- +//__FBSDID("$FreeBSD$");
-
- /* expm1(x)
- * Returns exp(x)-1, the exponential of x minus 1.
- *
- * Method
- * 1. Argument reduction:
- * Given x, find r and integer k such that
- *
- diff --git a/modules/fdlibm/src/s_fabs.cpp b/modules/fdlibm/src/s_fabs.cpp
- --- a/modules/fdlibm/src/s_fabs.cpp
- +++ b/modules/fdlibm/src/s_fabs.cpp
- @@ -5,18 +5,18 @@
- *
- * Developed at SunPro, a Sun Microsystems, Inc. business.
- * Permission to use, copy, modify, and distribute this
- * software is freely granted, provided that this notice
- * is preserved.
- * ====================================================
- */
-
- -#include <sys/cdefs.h>
- -__FBSDID("$FreeBSD$");
- +//#include <sys/cdefs.h>
- +//__FBSDID("$FreeBSD$");
-
- /*
- * fabs(x) returns the absolute value of x.
- */
-
- #include "math_private.h"
-
- double
- diff --git a/modules/fdlibm/src/s_floor.cpp b/modules/fdlibm/src/s_floor.cpp
- --- a/modules/fdlibm/src/s_floor.cpp
- +++ b/modules/fdlibm/src/s_floor.cpp
- @@ -5,18 +5,18 @@
- *
- * Developed at SunPro, a Sun Microsystems, Inc. business.
- * Permission to use, copy, modify, and distribute this
- * software is freely granted, provided that this notice
- * is preserved.
- * ====================================================
- */
-
- -#include <sys/cdefs.h>
- -__FBSDID("$FreeBSD$");
- +//#include <sys/cdefs.h>
- +//__FBSDID("$FreeBSD$");
-
- /*
- * floor(x)
- * Return x rounded toward -inf to integral value
- * Method:
- * Bit twiddling.
- * Exception:
- * Inexact flag raised if x not equal to floor(x).
- diff --git a/modules/fdlibm/src/s_floorf.cpp b/modules/fdlibm/src/s_floorf.cpp
- --- a/modules/fdlibm/src/s_floorf.cpp
- +++ b/modules/fdlibm/src/s_floorf.cpp
- @@ -8,18 +8,18 @@
- *
- * Developed at SunPro, a Sun Microsystems, Inc. business.
- * Permission to use, copy, modify, and distribute this
- * software is freely granted, provided that this notice
- * is preserved.
- * ====================================================
- */
-
- -#include <sys/cdefs.h>
- -__FBSDID("$FreeBSD$");
- +//#include <sys/cdefs.h>
- +//__FBSDID("$FreeBSD$");
-
- /*
- * floorf(x)
- * Return x rounded toward -inf to integral value
- * Method:
- * Bit twiddling.
- * Exception:
- * Inexact flag raised if x not equal to floorf(x).
- diff --git a/modules/fdlibm/src/s_log1p.cpp b/modules/fdlibm/src/s_log1p.cpp
- --- a/modules/fdlibm/src/s_log1p.cpp
- +++ b/modules/fdlibm/src/s_log1p.cpp
- @@ -5,18 +5,18 @@
- *
- * Developed at SunPro, a Sun Microsystems, Inc. business.
- * Permission to use, copy, modify, and distribute this
- * software is freely granted, provided that this notice
- * is preserved.
- * ====================================================
- */
-
- -#include <sys/cdefs.h>
- -__FBSDID("$FreeBSD$");
- +//#include <sys/cdefs.h>
- +//__FBSDID("$FreeBSD$");
-
- /* double log1p(double x)
- *
- * Method :
- * 1. Argument Reduction: find k and f such that
- * 1+x = 2^k * (1+f),
- * where sqrt(2)/2 < 1+f < sqrt(2) .
- *
- diff --git a/modules/fdlibm/src/s_nearbyint.cpp b/modules/fdlibm/src/s_nearbyint.cpp
- --- a/modules/fdlibm/src/s_nearbyint.cpp
- +++ b/modules/fdlibm/src/s_nearbyint.cpp
- @@ -21,18 +21,18 @@
- * 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.
- */
-
- -#include <sys/cdefs.h>
- -__FBSDID("$FreeBSD$");
- +//#include <sys/cdefs.h>
- +//__FBSDID("$FreeBSD$");
-
- #include <fenv.h>
- #include "math_private.h"
-
- /*
- * We save and restore the floating-point environment to avoid raising
- * an inexact exception. We can get away with using fesetenv()
- * instead of feclearexcept()/feupdateenv() to restore the environment
- diff --git a/modules/fdlibm/src/s_rint.cpp b/modules/fdlibm/src/s_rint.cpp
- --- a/modules/fdlibm/src/s_rint.cpp
- +++ b/modules/fdlibm/src/s_rint.cpp
- @@ -5,18 +5,18 @@
- *
- * Developed at SunPro, a Sun Microsystems, Inc. business.
- * Permission to use, copy, modify, and distribute this
- * software is freely granted, provided that this notice
- * is preserved.
- * ====================================================
- */
-
- -#include <sys/cdefs.h>
- -__FBSDID("$FreeBSD$");
- +//#include <sys/cdefs.h>
- +//__FBSDID("$FreeBSD$");
-
- /*
- * rint(x)
- * Return x rounded to integral value according to the prevailing
- * rounding mode.
- * Method:
- * Using floating addition.
- * Exception:
- diff --git a/modules/fdlibm/src/s_rintf.cpp b/modules/fdlibm/src/s_rintf.cpp
- --- a/modules/fdlibm/src/s_rintf.cpp
- +++ b/modules/fdlibm/src/s_rintf.cpp
- @@ -8,18 +8,18 @@
- *
- * Developed at SunPro, a Sun Microsystems, Inc. business.
- * Permission to use, copy, modify, and distribute this
- * software is freely granted, provided that this notice
- * is preserved.
- * ====================================================
- */
-
- -#include <sys/cdefs.h>
- -__FBSDID("$FreeBSD$");
- +//#include <sys/cdefs.h>
- +//__FBSDID("$FreeBSD$");
-
- #include <float.h>
- #include <stdint.h>
-
- #include "math_private.h"
-
- static const float
- TWO23[2]={
- diff --git a/modules/fdlibm/src/s_scalbn.cpp b/modules/fdlibm/src/s_scalbn.cpp
- --- a/modules/fdlibm/src/s_scalbn.cpp
- +++ b/modules/fdlibm/src/s_scalbn.cpp
- @@ -5,18 +5,18 @@
- *
- * Developed at SunPro, a Sun Microsystems, Inc. business.
- * Permission to use, copy, modify, and distribute this
- * software is freely granted, provided that this notice
- * is preserved.
- * ====================================================
- */
-
- -#include <sys/cdefs.h>
- -__FBSDID("$FreeBSD$");
- +//#include <sys/cdefs.h>
- +//__FBSDID("$FreeBSD$");
-
- /*
- * scalbn (double x, int n)
- * scalbn(x,n) returns x* 2**n computed by exponent
- * manipulation rather than by actually performing an
- * exponentiation or a multiplication.
- */
-
- diff --git a/modules/fdlibm/src/s_tanh.cpp b/modules/fdlibm/src/s_tanh.cpp
- --- a/modules/fdlibm/src/s_tanh.cpp
- +++ b/modules/fdlibm/src/s_tanh.cpp
- @@ -5,18 +5,18 @@
- *
- * Developed at SunPro, a Sun Microsystems, Inc. business.
- * Permission to use, copy, modify, and distribute this
- * software is freely granted, provided that this notice
- * is preserved.
- * ====================================================
- */
-
- -#include <sys/cdefs.h>
- -__FBSDID("$FreeBSD$");
- +//#include <sys/cdefs.h>
- +//__FBSDID("$FreeBSD$");
-
- /* Tanh(x)
- * Return the Hyperbolic Tangent of x
- *
- * Method :
- * x -x
- * e - e
- * 0. tanh(x) is defined to be -----------
- diff --git a/modules/fdlibm/src/s_trunc.cpp b/modules/fdlibm/src/s_trunc.cpp
- --- a/modules/fdlibm/src/s_trunc.cpp
- +++ b/modules/fdlibm/src/s_trunc.cpp
- @@ -5,18 +5,18 @@
- *
- * Developed at SunPro, a Sun Microsystems, Inc. business.
- * Permission to use, copy, modify, and distribute this
- * software is freely granted, provided that this notice
- * is preserved.
- * ====================================================
- */
-
- -#include <sys/cdefs.h>
- -__FBSDID("$FreeBSD$");
- +//#include <sys/cdefs.h>
- +//__FBSDID("$FreeBSD$");
-
- /*
- * trunc(x)
- * Return x rounded toward 0 to integral value
- * Method:
- * Bit twiddling.
- * Exception:
- * Inexact flag raised if x not equal to trunc(x).
- diff --git a/modules/fdlibm/src/s_truncf.cpp b/modules/fdlibm/src/s_truncf.cpp
- --- a/modules/fdlibm/src/s_truncf.cpp
- +++ b/modules/fdlibm/src/s_truncf.cpp
- @@ -5,18 +5,18 @@
- *
- * Developed at SunPro, a Sun Microsystems, Inc. business.
- * Permission to use, copy, modify, and distribute this
- * software is freely granted, provided that this notice
- * is preserved.
- * ====================================================
- */
-
- -#include <sys/cdefs.h>
- -__FBSDID("$FreeBSD$");
- +//#include <sys/cdefs.h>
- +//__FBSDID("$FreeBSD$");
-
- /*
- * truncf(x)
- * Return x rounded toward 0 to integral value
- * Method:
- * Bit twiddling.
- * Exception:
- * Inexact flag raised if x not equal to truncf(x).
|