1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41172 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2013-06-08 10:07:05 +00:00
parent a76abae51d
commit 14140eb16b
2 changed files with 4 additions and 9 deletions

View file

@ -1,3 +1,7 @@
Sat Jun 8 19:06:26 2013 Tanaka Akira <akr@fsij.org>
* random.c: Unused RBignum internal accessing macros removed.
Sat Jun 8 19:04:15 2013 Tanaka Akira <akr@fsij.org>
* random.c (limited_big_rand): The argument, limit, is changed to

View file

@ -261,15 +261,6 @@ rb_genrand_real(void)
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