mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* include/ruby/defines.h: Don't use int128_t for Bignum.
It's not always faster. * bignum.c: Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43827 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4ef2f0d224
commit
d33541009f
3 changed files with 9 additions and 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.
|
||||
|
|
4
bignum.c
4
bignum.c
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue