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

ruby-changes:45105

From: nobu <ko1@a...>
Date: Sun, 25 Dec 2016 17:42:32 +0900 (JST)
Subject: [ruby-changes:45105] nobu:r57178 (trunk): bignum.c (DBL_BIGDIG): make enum

nobu	2016-12-25 17:42:28 +0900 (Sun, 25 Dec 2016)

  New Revision: 57178

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57178

  Log:
    bignum.c (DBL_BIGDIG): make enum

  Modified files:
    trunk/bignum.c
Index: bignum.c
===================================================================
--- bignum.c	(revision 57177)
+++ bignum.c	(revision 57178)
@@ -6090,10 +6090,11 @@ big_shift(VALUE x, long n) https://github.com/ruby/ruby/blob/trunk/bignum.c#L6090
     return x;
 }
 
+enum {DBL_BIGDIG = ((DBL_MANT_DIG + BITSPERDIG) / BITSPERDIG)};
+
 static double
 big_fdiv(VALUE x, VALUE y, long ey)
 {
-#define DBL_BIGDIG ((DBL_MANT_DIG + BITSPERDIG) / BITSPERDIG)
     VALUE z;
     long l, ex;
 

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

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