summaryrefslogtreecommitdiff
path: root/random.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-08 10:07:05 (GMT)
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-08 10:07:05 (GMT)
commit14140eb16b301c1b305b94d6271e8b72242685f6 (patch)
treecf2849a6dd5fc4298204eae14b01f628bc269ce9 /random.c
parenta76abae51db93662e4e58517a792e57779d2c669 (diff)
* 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
Diffstat (limited to 'random.c')
-rw-r--r--random.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/random.c b/random.c
index a11646e..d41846b 100644
--- a/random.c
+++ b/random.c
@@ -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