summaryrefslogtreecommitdiff
path: root/waterfox/mozilla-1320560.patch
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2019-01-15 11:59:22 -0500
committerB Stack <bgstack15@gmail.com>2019-01-15 11:59:22 -0500
commit93ec193d01debd136ee7bc0563f77afe3ed22d4e (patch)
treef6be51ea7be86ec05f9ea5bbd5ee212a9b0e36c2 /waterfox/mozilla-1320560.patch
parentMerge branch 'waterfox-bump' into 'master' (diff)
downloadstackrpms-93ec193d01debd136ee7bc0563f77afe3ed22d4e.tar.gz
stackrpms-93ec193d01debd136ee7bc0563f77afe3ed22d4e.tar.bz2
stackrpms-93ec193d01debd136ee7bc0563f77afe3ed22d4e.zip
waterfox ingest PGO fixes from chinfo
Diffstat (limited to 'waterfox/mozilla-1320560.patch')
-rw-r--r--waterfox/mozilla-1320560.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/waterfox/mozilla-1320560.patch b/waterfox/mozilla-1320560.patch
new file mode 100644
index 0000000..11bd2d8
--- /dev/null
+++ b/waterfox/mozilla-1320560.patch
@@ -0,0 +1,36 @@
+
+# HG changeset patch
+# User Jory A. Pratt <anarchy@gentoo.org>
+# Date 1483893240 18000
+# Node ID 4723934741c51affa834f6866ca5fe5c419ddfe8
+# Parent b3fb981d0e10bcae8c73f6be6856fea266b30017
+Bug 1320560 - Use C99 math isfinite, finite has been depreciated and all modern libc implementations use isfinite. r=froydnj
+
+diff --git a/xpcom/ds/nsMathUtils.h b/xpcom/ds/nsMathUtils.h
+--- a/xpcom/ds/nsMathUtils.h
++++ b/xpcom/ds/nsMathUtils.h
+@@ -98,22 +98,18 @@ NS_hypot(double aNum1, double aNum2)
+ * NaN value).
+ */
+ inline bool
+ NS_finite(double aNum)
+ {
+ #ifdef WIN32
+ // NOTE: '!!' casts an int to bool without spamming MSVC warning C4800.
+ return !!_finite(aNum);
+-#elif defined(XP_DARWIN)
+- // Darwin has deprecated |finite| and recommends |isfinite|. The former is
+- // not present in the iOS SDK.
++#else
+ return std::isfinite(aNum);
+-#else
+- return finite(aNum);
+ #endif
+ }
+
+ /**
+ * Returns the result of the modulo of x by y using a floored division.
+ * fmod(x, y) is using a truncated division.
+ * The main difference is that the result of this method will have the sign of
+ * y while the result of fmod(x, y) will have the sign of x.
+
bgstack15