pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/www/mozilla Replace the homegrown floating point binar...
details: https://anonhg.NetBSD.org/pkgsrc/rev/034cbbf848e0
branches: trunk
changeset: 494812:034cbbf848e0
user: martin <martin%pkgsrc.org@localhost>
date: Tue May 31 09:21:51 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.
diffstat:
www/mozilla/distinfo | 3 ++-
www/mozilla/patches/patch-cd | 37 +++++++++++++++++++++++++++++++++++++
2 files changed, 39 insertions(+), 1 deletions(-)
diffs (55 lines):
diff -r c353d4d80e39 -r 034cbbf848e0 www/mozilla/distinfo
--- a/www/mozilla/distinfo Tue May 31 09:19:16 2005 +0000
+++ b/www/mozilla/distinfo Tue May 31 09:21:51 2005 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.76 2005/05/15 02:58:05 taya Exp $
+$NetBSD: distinfo,v 1.77 2005/05/31 09:21:51 martin Exp $
SHA1 (mozilla-1.7.8-source.tar.bz2) = ca682415a9ba99a3c4bd55636e1f9fda53a2545f
RMD160 (mozilla-1.7.8-source.tar.bz2) = 3e91b559c2ab76ba6dc1f99fca57b921660ab673
@@ -36,3 +36,4 @@
SHA1 (patch-ca) = 479ef14631ae019ae5ca1c08a2f786294f3e972b
SHA1 (patch-cb) = fd0f033d63be066ce5c47057d72c48a085718908
SHA1 (patch-cc) = cb08d4b7330c9e471d172c11772c840e613ceb76
+SHA1 (patch-cd) = bc93de493522d6685b983f961513ff97d0a92266
diff -r c353d4d80e39 -r 034cbbf848e0 www/mozilla/patches/patch-cd
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/www/mozilla/patches/patch-cd Tue May 31 09:21:51 2005 +0000
@@ -0,0 +1,37 @@
+$NetBSD: patch-cd,v 1.1 2005/05/31 09:21:51 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