pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/www/firefox Replace the homegrown floating point binar...
details: https://anonhg.NetBSD.org/pkgsrc/rev/d9ab6a98b8af
branches: trunk
changeset: 495082:d9ab6a98b8af
user: martin <martin%pkgsrc.org@localhost>
date: Thu Jun 02 12:37:33 2005 +0000
description:
Replace the homegrown floating point binary access patterns in class Double
by macros from math.h to avoid alignement problems described in
PR pkg/30106.
(Same as ../mozilla/patches/patch-cd)
diffstat:
www/firefox/distinfo | 3 ++-
www/firefox/patches/patch-cg | 37 +++++++++++++++++++++++++++++++++++++
2 files changed, 39 insertions(+), 1 deletions(-)
diffs (55 lines):
diff -r 662bef3f8855 -r d9ab6a98b8af www/firefox/distinfo
--- a/www/firefox/distinfo Thu Jun 02 12:37:26 2005 +0000
+++ b/www/firefox/distinfo Thu Jun 02 12:37:33 2005 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.29 2005/05/14 15:27:10 taya Exp $
+$NetBSD: distinfo,v 1.30 2005/06/02 12:37:33 martin Exp $
SHA1 (firefox-1.0.4/firefox-1.0.4-source.tar.bz2) = d030628e52e1bebe9d6515d7fab5a126a1b6b38a
RMD160 (firefox-1.0.4/firefox-1.0.4-source.tar.bz2) = 4b04740fe4615ddddd16ec296509177ab29d4edc
@@ -39,3 +39,4 @@
SHA1 (patch-cd) = bbe839bce72a1d6816fa0c091172a818fb469981
SHA1 (patch-ce) = f7db7a46d40b80287774f93d55b05a5ad0c79214
SHA1 (patch-cf) = 337bc106afe7ce3fa6678fca4c0317714393a977
+SHA1 (patch-cg) = bc93de493522d6685b983f961513ff97d0a92266
diff -r 662bef3f8855 -r d9ab6a98b8af www/firefox/patches/patch-cg
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/www/firefox/patches/patch-cg Thu Jun 02 12:37:33 2005 +0000
@@ -0,0 +1,37 @@
+$NetBSD: patch-cg,v 1.1 2005/06/02 12:37:33 martin Exp $
+
+--- extensions/transformiix/source/base/Double.cpp.orig 2004-01-15 22:23:18.000000000 +0100
++++ extensions/transformiix/source/base/Double.cpp 2005-05-30 15:51:38.000000000 +0200
+@@ -48,6 +48,24 @@
+ * Utility class for doubles
+ */
+
++/* this should be some other predicate - like "has working math support" */
++#if defined(__NetBSD__) || (defined(__sun__) && defined(_LP64))
++MBool Double::isInfinite(double aDbl)
++{
++ return isinf(aDbl);
++}
++
++MBool Double::isNaN(double aDbl)
++{
++ return isnan(aDbl);
++}
++
++MBool Double::isNeg(double aDbl)
++{
++ return aDbl<0.0;
++}
++#else
++
+ //A trick to handle IEEE floating point exceptions on FreeBSD - E.D.
+ #ifdef __FreeBSD__
+ #include <ieeefp.h>
+@@ -157,6 +175,7 @@
+ {
+ return (TX_DOUBLE_HI32(aDbl) & TX_DOUBLE_HI32_SIGNBIT) != 0;
+ }
++#endif
+
+ /*
+ * Converts the given String to a double, if the String value does not
Home |
Main Index |
Thread Index |
Old Index