diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-07-10 11:10:05 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-07-10 11:10:05 +0000 |
commit | 716c93bed12e5dcc842a3668802e0cc60651b2f9 (patch) | |
tree | a2aa89d32bb3dbfd1dbe3fc200db8ac55850a031 /bignum.c | |
parent | 7bc77b76fe828252c8b0d04f8014c01ba3f5cad4 (diff) |
* bignum.c (SIZEOF_BDIGIT_DBL): Add a ifdef guard for test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41894 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bignum.c')
-rw-r--r-- | bignum.c | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -34,12 +34,14 @@ static VALUE big_three = Qnil; #define USHORT _USHORT #endif -#if defined(HAVE_INT64_T) && defined(HAVE_INT128_T) -# define SIZEOF_BDIGIT_DBL SIZEOF_INT128_T -#elif SIZEOF_INT*2 <= SIZEOF_LONG_LONG -# define SIZEOF_BDIGIT_DBL SIZEOF_LONG_LONG -#else -# define SIZEOF_BDIGIT_DBL SIZEOF_LONG +#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 +# define SIZEOF_BDIGIT_DBL SIZEOF_LONG_LONG +# else +# define SIZEOF_BDIGIT_DBL SIZEOF_LONG +# endif #endif #ifdef WORDS_BIGENDIAN |