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

ruby-changes:29120

From: akr <ko1@a...>
Date: Sat, 8 Jun 2013 19:07:27 +0900 (JST)
Subject: [ruby-changes:29120] akr:r41172 (trunk): * random.c: Unused RBignum internal accessing macros removed.

akr	2013-06-08 19:07:05 +0900 (Sat, 08 Jun 2013)

  New Revision: 41172

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

  Log:
    * random.c: Unused RBignum internal accessing macros removed.

  Modified files:
    trunk/ChangeLog
    trunk/random.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 41171)
+++ ChangeLog	(revision 41172)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sat Jun  8 19:06:26 2013  Tanaka Akira  <akr@f...>
+
+	* random.c: Unused RBignum internal accessing macros removed.
+
 Sat Jun  8 19:04:15 2013  Tanaka Akira  <akr@f...>
 
 	* random.c (limited_big_rand): The argument, limit, is changed to
Index: random.c
===================================================================
--- random.c	(revision 41171)
+++ random.c	(revision 41172)
@@ -261,15 +261,6 @@ rb_genrand_real(void) https://github.com/ruby/ruby/blob/trunk/random.c#L261
     return genrand_real(mt);
 }
 
-#define BDIGITS(x) (RBIGNUM_DIGITS(x))
-#define BITSPERDIG (SIZEOF_BDIGITS*CHAR_BIT)
-#define BIGRAD ((BDIGIT_DBL)1 << BITSPERDIG)
-#define DIGSPERINT (SIZEOF_INT/SIZEOF_BDIGITS)
-#define BIGUP(x) ((BDIGIT_DBL)(x) << BITSPERDIG)
-#define BIGDN(x) RSHIFT((x),BITSPERDIG)
-#define BIGLO(x) ((BDIGIT)((x) & (BIGRAD-1)))
-#define BDIGMAX ((BDIGIT)-1)
-
 #define SIZEOF_INT32 (31/CHAR_BIT + 1)
 
 static double

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

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