Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Oct 24, 2011
  1. @akr

    * complex.c: use "__sun" instead of "__sun__" to detect SunOS.

    akr authored
    * math.c: ditto.
    
    * hash.c: ditto.
    
    * atomic.h: ditto.
    
    * ext/io/wait/wait.c: ditto.
    
    [ruby-dev:44693]
    
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Sep 29, 2011
  1. @nobu

    * use RB_TYPE_P which is optimized for constant types, instead of

    nobu authored
      comparison with TYPE.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Aug 5, 2011
  1. * complex.c (f_signbit): fix compile error in gcc4 on Solaris with

    ngoto authored
      CFLAGS="-std=gnu99".  [ruby-dev:44355] fix [Bug #5159]
    
    * math.c: ditto.
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32858 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Jul 31, 2011
  1. @yugui

    Forward-ports r32777 from branches/ruby_1_9_3 to trunk.

    yugui authored
    --
    * complex.c (f_signbit): gcc4 on Solaris DOES have signbit but does
      not have it on header.
    
    * math.c: ditto.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32786 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Jun 29, 2011
  1. @drbrain

    * math.c: Attach documentation for Math.

    drbrain authored
    	* object.c:  Document NIL, TRUE, FALSE.
    	* io.c:  Improve grammar in ARGF comment.  Document STDIN/OUT/ERR.
    	  Document ARGF global constant.
    	* lib/rake:  Hide deprecated toplevel constants from RDoc (import from
    	  rake trunk).
    	* lib/thwait.rb:  Document ThWait.
    	* lib/mathn.rb:  Hide Math redefinition from RDoc
    	* lib/sync.rb:  Add a basic comment for Sync_m, Synchronizer_m, Sync,
    	  Synchronizer.
    	* parse.y:  Document SCRIPT_LINES__.
    	* hash.c:  Document ENV class and global constant.
    	* vm.c:  Document TOPLEVEL_BINDING.
    	* version.c:  Document RUBY_* constants.
    	* ruby.c:  Document DATA and ARGV.
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32281 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Jun 17, 2011
  1. @akr

    * internal.h: declare internal functions here.

    akr authored
    * node.h: declare NODE dependent internal functions here.
    
    * iseq.h: declare rb_iseq_t dependent internal functions here.
    
    * vm_core.h: declare rb_thread_t dependent internal functions here.
    
    * bignum.c, class.c, compile.c, complex.c, cont.c, dir.c, encoding.c,
      enumerator.c, error.c, eval.c, file.c, gc.c, hash.c, inits.c, io.c,
      iseq.c, load.c, marshal.c, math.c, numeric.c, object.c, parse.y,
      proc.c, process.c, range.c, rational.c, re.c, ruby.c, string.c,
      thread.c, time.c, transcode.c, variable.c, vm.c,
      tool/compile_prelude.rb: don't declare internal functions declared
      in above headers.  include above headers if required.
    
      Note that rb_thread_mark() was declared as
      void rb_thread_mark(rb_thread_t *th) in cont.c but defined as
      void rb_thread_mark(void *ptr) in vm.c.  Now it is declared as
      the later in internal.h.
    
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Aug 27, 2010
  1. @unak

    * math.c (math_atan2): you should know that M_PI is not the feature

    unak authored
      of C90.
      fixed build failure caused by r29115.
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  2. @mrkn

    * math.c (math_atan2): change the behavior when x and y are zero.

    mrkn authored
    * test/ruby/test_math.rb (test_atan2): add tests for the above
      changes.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on May 17, 2010
  1. @marcandre

    * array.c: Documentation: change => in call-seq to ->.

    marcandre authored
                Harmonize "#=>" in examples. [ruby-core:30206]
    
    * bignum.c: ditto
    
    * class.c: ditto
    
    * compar.c: ditto
    
    * cont.c: ditto
    
    * dir.c: ditto
    
    * encoding.c: ditto
    
    * enum.c: ditto
    
    * enumerator.c: ditto
    
    * error.c: ditto
    
    * eval.c: ditto
    
    * file.c: ditto
    
    * gc.c: ditto
    
    * io.c: ditto
    
    * load.c: ditto
    
    * marshal.c: ditto
    
    * math.c: ditto
    
    * numeric.c: ditto
    
    * object.c: ditto
    
    * pack.c: ditto
    
    * proc.c: ditto
    
    * process.c: ditto
    
    * random.c: ditto
    
    * range.c: ditto
    
    * re.c: ditto
    
    * ruby.c: ditto
    
    * signal.c: ditto
    
    * sprintf.c: ditto
    
    * string.c: ditto
    
    * struct.c: ditto
    
    * thread.c: ditto
    
    * time.c: ditto
    
    * transcode.c: ditto
    
    * variable.c: ditto
    
    * vm_eval.c: ditto
    
    * vm_method.c: ditto
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on May 8, 2010
  1. @marcandre

    * error.c: RDoc for subclasses of Exception. [ruby-core:28394]

    marcandre authored
    * cont.c: ditto
    
    * enumerator.c: ditto
    
    * io.c: ditto
    
    * math.c: ditto
    
    * numeric.c: ditto
    
    * proc.c: ditto
    
    * re.c: ditto
    
    * thread.c: ditto
    
    * transcode.c: ditto. Thanks to Run Paint for some of the documentation.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27671 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Apr 30, 2010
  1. @marcandre

    * math.c: Math::DomainError < StandardException [ruby-core:29855]

    marcandre authored
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Feb 28, 2010
  1. @mrkn

    * math.c (rb_eMathDomainError): new exception class for representing …

    mrkn authored
    …mathematical domain error instead of Errno::EDOM.
    
    * math.c (domain_check, infinity_check): removed, no longer needed.
    * math.c (math_atan2, math_acos, math_asin, math_acosh, math_atanh, math_log, math_log2, math_log10, math_sqrt, math_gamma, math_lgamma): mathematical domain errors are checked and raised before calling libm's functions.
    * test/ruby/test_math.rb: updated for changes of maht.c.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Feb 18, 2010
  1. @mame

    * math.c (math_atanh): raise ERANGE without calling atanh if absolute

    mame authored
      value is 1 to achieve platform-independent math.  [ruby-core:28219]
    
    * math.c (math_lgamma): return [Infinity, 1] without calling lgamma_r
      if argument is infinity or -infinity.  [ruby-core:28219]
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26707 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Feb 6, 2010
  1. @akr

    * math.c (math_lgamma): initialize sign because

    akr authored
      lgamma(NaN) doesn't set the sign in OpenSolaris.
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Jan 25, 2010
  1. @nurse

    * math.c (domain_check): ignore errno if y is inf.

    nurse authored
      r26335 is because NetBSD 5.0's asin and acos returns
      0.0 with errno EDOM. But it breaks Linux whose gamma returns inf
      with errno ERANGE on.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26397 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Jan 17, 2010
  1. @nobu

    * math.c (domain_check): check errno first.

    nobu authored
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26335 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Dec 27, 2009
  1. @akr

    rdoc update.

    akr authored
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Nov 18, 2009
  1. * math.c (math_gamma): fix incorrect comparison expression.

    takano32 authored
      see also [ruby-dev:39709] [Bug #2381]
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25836 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Nov 17, 2009
  1. @akr

    rdoc update.

    akr authored
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Oct 10, 2009
  1. @yugui

    * math.c (math_atanh): reverted r25279.

    yugui authored
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25287 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  2. @marcandre

    * math.c (math_atanh): Fix bug for Math.atanh(+/-1). It now returns +…

    marcandre authored
    …-Infinity. [ruby-core:26028]
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25279 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Sep 5, 2009
  1. @akr

    update comment.

    akr authored
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24756 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Sep 2, 2009
  1. @nobu

    * math.c (math_gamma): get rid of direct comparison between too

    nobu authored
      big double and integer, with gcc on x86_64.  [ruby-core:25257]
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24738 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  2. @nobu

    * math.c (domain_check): simplified.

    nobu authored
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24737 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  3. @nobu

    * math.c (math_gamma): constified fact_table.

    nobu authored
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on May 13, 2009
  1. @akr

    rdoc update.

    akr authored
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on May 6, 2009
  1. @akr

    update rdoc.

    akr authored
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23352 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  2. @akr

    * math.c (math_gamma): use a table for positive small integers.

    akr authored
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23351 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Feb 23, 2009
  1. * math.c (Need_Float): call rb_to_float() only when it is really

    matz authored
      needed.  small performance improvement.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Feb 22, 2009
  1. @nobu

    stripped trailing spaces.

    nobu authored
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Jan 28, 2009
  1. * math.c: SEGV is caused by implicit rb_to_float declaration

    takano32 authored
      	  test_complexrational.rb: [BUG] at IA-64 architecture
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Dec 31, 2008
  1. * object.c (rb_to_float): replaced by to_flo definition from

    matz authored
      math.c  [ruby-dev:37668]
    
    * math.c (Need_Float): use rb_to_float().
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Dec 10, 2008
  1. * math.c (domain_check): should not raise EDOM exception for NaN

    matz authored
      value if operand is also NaN.  affects acos, asin, acosh, atanh,
      log, log2, log10, sqrt, gamma, lgamma. [ruby-dev:37357]
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Oct 28, 2008
  1. inserted a newline.

    tadf authored
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  2. * math.c (rb_math_{atan2,cos,cosh,hypot,log,sin,sinh,sqrt}): added.

    tadf authored
    	* complex.c: follows the above change.
    
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20005 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Something went wrong with that request. Please try again.