diff options
author | martin <martin> | 2005-06-02 12:37:33 +0000 |
---|---|---|
committer | martin <martin> | 2005-06-02 12:37:33 +0000 |
commit | ea47f5f1a6ebfe98bd28a126f067c3c63e5ae945 (patch) | |
tree | 0713cf177b5ed69c06945be40ef7846c003607cb /www/firefox/patches/patch-cg | |
parent | 8778733e721b42b030c18e2f8e5842ede53ef740 (diff) | |
download | pkgsrc-ea47f5f1a6ebfe98bd28a126f067c3c63e5ae945.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/firefox/patches/patch-cg')
-rw-r--r-- | www/firefox/patches/patch-cg | 37 |
1 files changed, 37 insertions, 0 deletions
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 |