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

ruby-changes:29259

From: akr <ko1@a...>
Date: Sat, 15 Jun 2013 19:36:03 +0900 (JST)
Subject: [ruby-changes:29259] akr:r41311 (trunk): * bignum.c (absint_numwords_bytes): Make it static.

akr	2013-06-15 19:35:52 +0900 (Sat, 15 Jun 2013)

  New Revision: 41311

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

  Log:
    * bignum.c (absint_numwords_bytes): Make it static.
      (absint_numwords_small): Ditto.
      (absint_numwords_generic): Ditto.

  Modified files:
    trunk/ChangeLog
    trunk/bignum.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 41310)
+++ ChangeLog	(revision 41311)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sat Jun 15 19:35:04 2013  Tanaka Akira  <akr@f...>
+
+	* bignum.c (absint_numwords_bytes): Make it static.
+	  (absint_numwords_small): Ditto.
+	  (absint_numwords_generic): Ditto.
+
 Sat Jun 15 17:14:32 2013  Tanaka Akira  <akr@f...>
 
 	* bignum.c (bigmul1_normal): Shrink the result Bignum length.
Index: bignum.c
===================================================================
--- bignum.c	(revision 41310)
+++ bignum.c	(revision 41311)
@@ -518,7 +518,7 @@ rb_absint_size(VALUE val, int *nlz_bits_ https://github.com/ruby/ruby/blob/trunk/bignum.c#L518
     return (de - dp) * SIZEOF_BDIGITS - num_leading_zeros / CHAR_BIT;
 }
 
-size_t
+static size_t
 absint_numwords_bytes(size_t numbytes, int nlz_bits_in_msbyte, size_t word_numbits, size_t *nlz_bits_ret)
 {
     /*
@@ -567,7 +567,7 @@ absint_numwords_bytes(size_t numbytes, i https://github.com/ruby/ruby/blob/trunk/bignum.c#L567
     return numwords;
 }
 
-size_t
+static size_t
 absint_numwords_small(size_t numbytes, int nlz_bits_in_msbyte, size_t word_numbits, size_t *nlz_bits_ret)
 {
     size_t val_numbits = numbytes * CHAR_BIT - nlz_bits_in_msbyte;
@@ -581,7 +581,7 @@ absint_numwords_small(size_t numbytes, i https://github.com/ruby/ruby/blob/trunk/bignum.c#L581
     return numwords;
 }
 
-size_t
+static size_t
 absint_numwords_generic(size_t numbytes, int nlz_bits_in_msbyte, size_t word_numbits, size_t *nlz_bits_ret)
 {
     VALUE val_numbits, word_numbits_v;

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

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