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

ruby-changes:29909

From: akr <ko1@a...>
Date: Sun, 14 Jul 2013 00:39:03 +0900 (JST)
Subject: [ruby-changes:29909] akr:r41961 (trunk): * bignum.c (DIGSPERLONG): Unused macro removed.

akr	2013-07-14 00:38:52 +0900 (Sun, 14 Jul 2013)

  New Revision: 41961

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

  Log:
    * bignum.c (DIGSPERLONG): Unused macro removed.
      (DIGSPERLL): Ditto.

  Modified files:
    trunk/ChangeLog
    trunk/bignum.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 41960)
+++ ChangeLog	(revision 41961)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sun Jul 14 00:36:03 2013  Tanaka Akira  <akr@f...>
+
+	* bignum.c (DIGSPERLONG): Unused macro removed.
+	  (DIGSPERLL): Ditto.
+
 Sun Jul 14 00:32:51 2013  Tanaka Akira  <akr@f...>
 
 	* bignum.c (rb_big_aref): Less scan when the number is negative.
Index: bignum.c
===================================================================
--- bignum.c	(revision 41960)
+++ bignum.c	(revision 41961)
@@ -65,12 +65,6 @@ STATIC_ASSERT(rbignum_embed_len_max, RBI https://github.com/ruby/ruby/blob/trunk/bignum.c#L65
 #define BIGRAD ((BDIGIT_DBL)1 << BITSPERDIG)
 #define BIGRAD_HALF ((BDIGIT)(BIGRAD >> 1))
 #define BDIGIT_MSB(d) (((d) & BIGRAD_HALF) != 0)
-#if SIZEOF_LONG >= SIZEOF_BDIGITS
-#   define DIGSPERLONG (SIZEOF_LONG/SIZEOF_BDIGITS)
-#endif
-#if defined(HAVE_LONG_LONG) && SIZEOF_LONG_LONG >= SIZEOF_BDIGITS
-# define DIGSPERLL (SIZEOF_LONG_LONG/SIZEOF_BDIGITS)
-#endif
 #define BIGUP(x) LSHIFTX(((x) + (BDIGIT_DBL)0), BITSPERDIG)
 #define BIGDN(x) RSHIFT((x),BITSPERDIG)
 #define BIGLO(x) ((BDIGIT)((x) & BDIGMAX))

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

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