diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | bignum.c | 4 | ||||
-rw-r--r-- | include/ruby/defines.h | 8 |
3 files changed, 9 insertions, 10 deletions
@@ -1,3 +1,10 @@ +Sun Nov 24 13:49:08 2013 Tanaka Akira <akr@fsij.org> + + * include/ruby/defines.h: Don't use int128_t for Bignum. + It's not always faster. + + * bignum.c: Ditto. + Sun Nov 24 10:18:15 2013 Aman Gupta <ruby@tmm1.net> * NEWS: Add details about new debugging features and APIs. @@ -36,9 +36,7 @@ VALUE rb_cBignum; const char ruby_digitmap[] = "0123456789abcdefghijklmnopqrstuvwxyz"; #ifndef SIZEOF_BDIGIT_DBL -# if defined(HAVE_INT64_T) && defined(HAVE_INT128_T) -# define SIZEOF_BDIGIT_DBL SIZEOF_INT128_T -# elif SIZEOF_INT*2 <= SIZEOF_LONG_LONG +# if SIZEOF_INT*2 <= SIZEOF_LONG_LONG # define SIZEOF_BDIGIT_DBL SIZEOF_LONG_LONG # else # define SIZEOF_BDIGIT_DBL SIZEOF_LONG diff --git a/include/ruby/defines.h b/include/ruby/defines.h index 3327e69123..1c07ac07e8 100644 --- a/include/ruby/defines.h +++ b/include/ruby/defines.h @@ -144,13 +144,7 @@ void xfree(void*); #endif #ifndef BDIGIT -# if defined(HAVE_INT64_T) && defined(HAVE_INT128_T) -# define BDIGIT uint64_t -# define SIZEOF_BDIGITS SIZEOF_INT64_T -# define BDIGIT_DBL uint128_t -# define BDIGIT_DBL_SIGNED int128_t -# define PRI_BDIGIT_PREFIX PRI_64_PREFIX -# 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 |