[前][次][番号順一覧][スレッド一覧]

ruby-changes:29842

From: akr <ko1@a...>
Date: Wed, 10 Jul 2013 20:10:15 +0900 (JST)
Subject: [ruby-changes:29842] akr:r41894 (trunk): * bignum.c (SIZEOF_BDIGIT_DBL): Add a ifdef guard for test.

akr	2013-07-10 20:10:05 +0900 (Wed, 10 Jul 2013)

  New Revision: 41894

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=41894

  Log:
    * bignum.c (SIZEOF_BDIGIT_DBL): Add a ifdef guard for test.

  Modified files:
    trunk/ChangeLog
    trunk/bignum.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 41893)
+++ ChangeLog	(revision 41894)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Jul 10 20:08:21 2013  Tanaka Akira  <akr@f...>
+
+	* bignum.c (SIZEOF_BDIGIT_DBL): Add a ifdef guard for test.
+
 Wed Jul 10 14:18:59 2013  Nobuyoshi Nakada  <nobu@r...>
 
 	* process.c (fork_daemon): kill the other threads all and abandon the
Index: bignum.c
===================================================================
--- bignum.c	(revision 41893)
+++ bignum.c	(revision 41894)
@@ -34,12 +34,14 @@ static VALUE big_three = Qnil; https://github.com/ruby/ruby/blob/trunk/bignum.c#L34
 #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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]