[MacRuby] #1042: BigMath::log and BigMath:exp are broken
MacRuby
ruby-noreply at macosforge.org
Wed Jan 5 17:44:03 PST 2011
#1042: BigMath::log and BigMath:exp are broken
-------------------------------------+--------------------------------------
Reporter: hghoehne@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: blocker | Milestone:
Component: MacRuby | Keywords:
-------------------------------------+--------------------------------------
Comment(by pthomson@…):
Here's a patch that removes that dubious optimization:
diff --git a/include/ruby/defines.h b/include/ruby/defines.h
index c5b144b..dbbec8f 100644
--- a/include/ruby/defines.h
+++ b/include/ruby/defines.h
@@ -81,12 +81,7 @@ void xfree(void*);
#include <AvailabilityMacros.h>
-#if defined(__LP64__) && (MAC_OS_X_VERSION_MAX_ALLOWED >= 1060)
-# define BDIGIT uint64_t
-# define SIZEOF_BDIGITS 8
-# define BDIGIT_DBL __uint128_t
-# define BDIGIT_DBL_SIGNED __int128_t
-#elif SIZEOF_INT*2 <= SIZEOF_LONG_LONG
+#if SIZEOF_INT*2 <= SIZEOF_LONG_LONG
# define BDIGIT unsigned int
# define SIZEOF_BDIGITS SIZEOF_INT
# define BDIGIT_DBL unsigned LONG_LONG
--
Ticket URL: <http://www.macruby.org/trac/ticket/1042#comment:7>
MacRuby <http://macruby.org/>
More information about the macruby-tickets
mailing list