mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 05:11:03 +00:00
b5ee72fe09
- Bug 1265956 - Assert that no entry is found in HashTable::putNew. (r=terrence) (8770735325) - Bug 1265483 - Use WeakCache to automate sweeping of ObjectGroupComparment::NewTable; r=jonco (e88fa842ab) - Bug 1198093 - Part 1: Expose indexedDB to System with [Exposed=System]. r=khuey (2a20a6ecd0) - Bug 1198093 - Part 2: Set Default Locale Value in ICU Canonicalization Form. r=khuey (1e1cd981ce) - Bug 1263871 - Fix OOM handling in while resolving function name r=shu (44114a7e8d) - Bug 1263270 - Sort census reports by smallest node ID counted, rather than number of nodes counted. r=jimb (08d4a431a7) - Bug 1263218 - Fix possbile race under oomTest involving background threads r=terrence (82c1e3b698) - Bug 1256488 - Add explicit casts to fix MSVC warning C4365. r=fitzgen (b9bb6b52c5) - Bug 1235677 - Add assertion to catch unsafe concurrent use of AutoEnterOOMUnsafeRegion r=terrence (2e0876578f) - Bug 1263902 - check return value from JS_smprintf. r=bbouvier, r=shu (df1d9b5e14) - Bug 1262208: Generalize the disabled compilation mode message for asm.js; r=luke (9153b2c5ba) - Bug 1259903: Baldr: unify Select true and false types instead of checking against each other; r=luke (5f89398199) - Bug 1253344: Remove unused pushPhi/popPhi in WasmIonCompile; r=luke (244967401c) - Bug 933257 - Part 1: Add a script to import and update fdlibm from FreeBSD. r=jwalden (37c8a85771) - Bug 933257 - Part 2: Add patches for fdlibm. r=jwalden (bc0dce94a0) - Bug 933257 - Part 2.1: Import fdlibm from FreeBSD (revision bcea9d50b15e4f0027a5dd526e0e2a612238471e). r=jwalden (223f6d6ce5) - Bug 933257 - Part 3: Add build scripts for fdlibm. r=jwalden (893f740423) - Bug 933257 - Part 4: Link fdlibm in SpiderMonkey. r=jwalden (9f1395258a) - Bug 933257 - Part 5: Use fdlibm in jsmath.cpp. r=jwalden (9d962657ab) - Bug 933257 - Part 6: Remove unused math polyfill. r=jwalden (cf284ad4e5) - Bug 1225024 - Allow sloppy tolerance in ecma_6/Math/log10-approx.js. r=jorendorff (7df3bf46dd) - Bug 933257 - Part 7: Remove or reduce sloppy_tolerance in Math function tests. r=jorendorff (86b978eb14) - Bug 933257 - Part 8: Add license for k_exp.cpp to about:license. r=gerv (513012fbb9) - Bug 933257 - Part 9: Use fdlibm in asm.js. r=luke (46bedc10d0) - Bug 1256490 - Disable C4302 to unblock compilation on VS2015; r=bobowen (7fb6820241) - Bug 1256499 - Disable C4311 and C4312 to unblock compilation on VS2015; r=bobowen (a9b3b01410) - Bug 1257036 - Disable C4302 to unblock compilation on VS2015; r=bobowen (307af58682) - Bug 1124033 - Disable C4311 and C4312 in directories exhibiting warnings; r=ehsan (b6ecd1f8e7) - Bug 1252931 - Remove INSTALL/PP_TARGETS from js/src/*; r=gps (a1e1d3bb82) - Bug 1258908: Rename TYPE_MOZILLA_UI to TYPE_MOZILLA_PARENT. r=jld (29aef56b8e) - Bug 1203835 - Don't ship replace_jemalloc. r=njn (249f927cf5) - bug 1259753 - fix some C++ unittests to use ScopedXPCOM to init XPCOM. r=ms2ger (a908216277)
754 lines
23 KiB
Diff
754 lines
23 KiB
Diff
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/e_sqrt.cpp b/modules/fdlibm/src/e_sqrt.cpp
|
|
--- a/modules/fdlibm/src/e_sqrt.cpp
|
|
+++ b/modules/fdlibm/src/e_sqrt.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_sqrt(x)
|
|
* Return correctly rounded sqrt.
|
|
* ------------------------------------------
|
|
* | Use the hardware sqrt if you have one |
|
|
* ------------------------------------------
|
|
* Method:
|
|
* Bit by bit method using integer arithmetic. (Slow, but portable)
|
|
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
|
|
@@ -19,22 +19,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 "math_private.h"
|
|
|
|
/* cbrt(x)
|
|
* Return cube root of x
|
|
*/
|
|
static const u_int32_t
|
|
B1 = 715094163, /* B1 = (1023-1023/3-0.03306235651)*2**20 */
|
|
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
|
|
@@ -1,22 +1,22 @@
|
|
-/* @(#)s_fabs.c 5.1 93/09/24 */
|
|
+ /* @(#)s_fabs.c 5.1 93/09/24 */
|
|
/*
|
|
* ====================================================
|
|
* Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
|
|
*
|
|
* 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.
|
|
* ====================================================
|
|
*/
|
|
|
|
#ifndef lint
|
|
-static char rcsid[] = "$FreeBSD$";
|
|
+ //static char rcsid[] = "$FreeBSD$";
|
|
#endif
|
|
|
|
/*
|
|
* fabs(x) returns the absolute value of x.
|
|
*/
|
|
|
|
#include "math_private.h"
|
|
|
|
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_scalbn.cpp b/modules/fdlibm/src/s_scalbn.cpp
|
|
--- a/modules/fdlibm/src/s_scalbn.cpp
|
|
+++ b/modules/fdlibm/src/s_scalbn.cpp
|
|
@@ -6,27 +6,27 @@
|
|
* 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.
|
|
* ====================================================
|
|
*/
|
|
|
|
#ifndef lint
|
|
-static char rcsid[] = "$FreeBSD$";
|
|
+//static char rcsid[] = "$FreeBSD$";
|
|
#endif
|
|
|
|
/*
|
|
* 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.
|
|
*/
|
|
|
|
-#include <sys/cdefs.h>
|
|
+//#include <sys/cdefs.h>
|
|
#include <float.h>
|
|
|
|
#include "math_private.h"
|
|
|
|
static const double
|
|
two54 = 1.80143985094819840000e+16, /* 0x43500000, 0x00000000 */
|
|
twom54 = 5.55111512312578270212e-17, /* 0x3C900000, 0x00000000 */
|
|
huge = 1.0e+300,
|
|
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).
|