diff options
author | martin <martin@pkgsrc.org> | 2005-06-02 12:37:33 +0000 |
---|---|---|
committer | martin <martin@pkgsrc.org> | 2005-06-02 12:37:33 +0000 |
commit | 833161b12405d8590badf596384c45021d2012f0 (patch) | |
tree | 0713cf177b5ed69c06945be40ef7846c003607cb /www | |
parent | 17dfddffad7e04bb440041453d2c33735e4dfa50 (diff) | |
download | pkgsrc-833161b12405d8590badf596384c45021d2012f0.tar.gz |
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 (limited to 'www')
-rw-r--r-- | www/firefox/distinfo | 3 | ||||
-rw-r--r-- | www/firefox/patches/patch-cg | 37 |
2 files changed, 39 insertions, 1 deletions
diff --git a/www/firefox/distinfo b/www/firefox/distinfo index 0ba46c53ea4..c2683835796 100644 --- a/www/firefox/distinfo +++ b/www/firefox/distinfo @@ -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-cc) = cb08d4b7330c9e471d172c11772c840e613ceb76 SHA1 (patch-cd) = bbe839bce72a1d6816fa0c091172a818fb469981 SHA1 (patch-ce) = f7db7a46d40b80287774f93d55b05a5ad0c79214 SHA1 (patch-cf) = 337bc106afe7ce3fa6678fca4c0317714393a977 +SHA1 (patch-cg) = bc93de493522d6685b983f961513ff97d0a92266 diff --git a/www/firefox/patches/patch-cg b/www/firefox/patches/patch-cg new file mode 100644 index 00000000000..6ffda9fc55b --- /dev/null +++ b/www/firefox/patches/patch-cg @@ -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 |