[ruby-cvs:51707] nobu:r44562 (trunk): ruby/util.h: DECIMAL_SIZE_OF_BITS

nobu at ruby-lang.org nobu at ruby-lang.org
Sun Jan 12 09:21:38 JST 2014


nobu	2014-01-12 09:21:37 +0900 (Sun, 12 Jan 2014)

  New Revision: 44562

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

  Log:
    ruby/util.h: DECIMAL_SIZE_OF_BITS
    
    * include/ruby/util.h (DECIMAL_SIZE_OF_BITS): a preprocessor
      constant macro to approximate decimal representation size of n-bits
      integer.
    * iseq.c (register_label): use DECIMAL_SIZE_OF_BITS for better
      approximation.
    * ext/bigdecimal/bigdecimal.c (BigMath_s_log): ditto.
    * common.mk (iseq.o), ext/bigdecimal/depend (bigdecimal.o): add
      dependency to ruby/util.h for DECIMAL_SIZE_OF_BITS.

  Modified files:
    trunk/ChangeLog
    trunk/common.mk
    trunk/ext/bigdecimal/bigdecimal.c
    trunk/ext/bigdecimal/depend
    trunk/include/ruby/util.h
    trunk/iseq.c


More information about the ruby-cvs mailing list