<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/numeric.c, branch v1_8_6_151</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>merge revision(s) 13902, 13907, 13914:</title>
<updated>2008-06-07T18:46:09+00:00</updated>
<author>
<name>shyouhei</name>
<email>shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e</email>
</author>
<published>2008-06-07T18:46:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=198898b3d56fdfc3da69e5e5b109f5d91019bf86'/>
<id>198898b3d56fdfc3da69e5e5b109f5d91019bf86</id>
<content type='text'>
	* numeric.c (flo_divmod): round to the nearest integer.
	  [ ruby-Bugs-14540 ]
	* numeric.c (flodivmod): work around for inifinity.
	* numeric.c (flo_divmod): work around for platforms have no round().
	  [ruby-dev:32247]
	* numeric.c (round): fallback definition.
	* numeric.c (flo_divmod, flo_round): use round() always.
	  [ruby-dev:32269]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@16931 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
	* numeric.c (flo_divmod): round to the nearest integer.
	  [ ruby-Bugs-14540 ]
	* numeric.c (flodivmod): work around for inifinity.
	* numeric.c (flo_divmod): work around for platforms have no round().
	  [ruby-dev:32247]
	* numeric.c (round): fallback definition.
	* numeric.c (flo_divmod, flo_round): use round() always.
	  [ruby-dev:32269]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@16931 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</pre>
</div>
</content>
</entry>
<entry>
<title>merge revision(s) 13785:</title>
<updated>2008-06-07T18:05:03+00:00</updated>
<author>
<name>shyouhei</name>
<email>shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e</email>
</author>
<published>2008-06-07T18:05:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=24a9bf988c896f073d0d483a117c4197f93006c2'/>
<id>24a9bf988c896f073d0d483a117c4197f93006c2</id>
<content type='text'>
	* numeric.c (fix_pow): returns infinity for 0**-1.  [ruby-dev:32084]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@16919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
	* numeric.c (fix_pow): returns infinity for 0**-1.  [ruby-dev:32084]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@16919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</pre>
</div>
</content>
</entry>
<entry>
<title>* bignum.c (rb_big_lshift, rb_big_rshift): separated functions</title>
<updated>2007-08-22T01:50:21+00:00</updated>
<author>
<name>shyouhei</name>
<email>shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e</email>
</author>
<published>2007-08-22T01:50:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=78cc8cc1c4d2642e3a234cc1874e26cb258dec50'/>
<id>78cc8cc1c4d2642e3a234cc1874e26cb258dec50</id>
<content type='text'>
  to get rid of infinite recursion.  fixed calculation in edge
  cases.  [ruby-dev:31244]
* numeric.c (rb_fix_lshift, rb_fix_rshift): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
  to get rid of infinite recursion.  fixed calculation in edge
  cases.  [ruby-dev:31244]
* numeric.c (rb_fix_lshift, rb_fix_rshift): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</pre>
</div>
</content>
</entry>
<entry>
<title>	* numeric.c (fix_pow): integer power calculation: 0**n =&gt; 0, </title>
<updated>2007-08-22T01:26:39+00:00</updated>
<author>
<name>shyouhei</name>
<email>shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e</email>
</author>
<published>2007-08-22T01:26:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=d1992916e05993b671e9ee9a92e0bb325aadf27a'/>
<id>d1992916e05993b671e9ee9a92e0bb325aadf27a</id>
<content type='text'>
	  1**n =&gt; 1, -1**n =&gt; 1 (n: even) / -1 (n: odd).
	* test/ruby/test_fixnum.rb (TestFixnum::test_pow): update test
	  suite.  pow(-3, 2^64) gives NaN when pow(3, 2^64) gives Inf.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
	  1**n =&gt; 1, -1**n =&gt; 1 (n: even) / -1 (n: odd).
	* test/ruby/test_fixnum.rb (TestFixnum::test_pow): update test
	  suite.  pow(-3, 2^64) gives NaN when pow(3, 2^64) gives Inf.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</pre>
</div>
</content>
</entry>
<entry>
<title>	* numeric.c (fix_pow): 0**2 should not raise floating point</title>
<updated>2007-08-22T01:05:52+00:00</updated>
<author>
<name>shyouhei</name>
<email>shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e</email>
</author>
<published>2007-08-22T01:05:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=b441a68e7fad7c5f0d3556aba15deea970aed8a5'/>
<id>b441a68e7fad7c5f0d3556aba15deea970aed8a5</id>
<content type='text'>
	  exception.  [ruby-dev:31216]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
	  exception.  [ruby-dev:31216]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</pre>
</div>
</content>
</entry>
<entry>
<title>* numeric.c (fix_cmp, fix_equal): Remove FIX2LONG() to optimize.</title>
<updated>2007-02-23T04:24:16+00:00</updated>
<author>
<name>knu</name>
<email>knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e</email>
</author>
<published>2007-02-23T04:24:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=2f7ff72148618e75737ce930d42b4b8131008e8c'/>
<id>2f7ff72148618e75737ce930d42b4b8131008e8c</id>
<content type='text'>
  suggested in
  http://t-a-w.blogspot.com/2007/02/making-ruby-faster.html.
  [ruby-talk:240223]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@11823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
  suggested in
  http://t-a-w.blogspot.com/2007/02/making-ruby-faster.html.
  [ruby-talk:240223]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@11823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</pre>
</div>
</content>
</entry>
<entry>
<title>Minor rdoc fix</title>
<updated>2006-09-24T20:47:57+00:00</updated>
<author>
<name>ryan</name>
<email>ryan@b2dd03c8-39d4-4d8f-98ff-823fe69b080e</email>
</author>
<published>2006-09-24T20:47:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=c2f9106b1a0e068e96564ef03a85a6efd16c4400'/>
<id>c2f9106b1a0e068e96564ef03a85a6efd16c4400</id>
<content type='text'>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11013 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11013 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</pre>
</div>
</content>
</entry>
<entry>
<title>* numeric.c (fix_plus): addition in Fixnum will never overflow</title>
<updated>2006-09-07T16:35:59+00:00</updated>
<author>
<name>matz</name>
<email>matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e</email>
</author>
<published>2006-09-07T16:35:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=b2b33db3552e1c99bf9842a36fa30c064fc5a5d6'/>
<id>b2b33db3552e1c99bf9842a36fa30c064fc5a5d6</id>
<content type='text'>
  long.  a patch from Ondrej Bilka &lt;neleai at seznam.cz&gt;.
  [ruby-core:08794]

* numeric.c (fix_minus): ditto.

* bignum.c (rb_big_pow): eagerly truncate resulting bignum.
  [ruby-core:08794]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10880 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
  long.  a patch from Ondrej Bilka &lt;neleai at seznam.cz&gt;.
  [ruby-core:08794]

* numeric.c (fix_minus): ditto.

* bignum.c (rb_big_pow): eagerly truncate resulting bignum.
  [ruby-core:08794]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10880 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</pre>
</div>
</content>
</entry>
<entry>
<title>* numeric.c (flo_hash): improve collision.  fixed: [ruby-dev:29352]</title>
<updated>2006-09-04T20:57:02+00:00</updated>
<author>
<name>nobu</name>
<email>nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e</email>
</author>
<published>2006-09-04T20:57:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=dfac39ff8d6a080f5cb3faea44b53dbdec5e06ae'/>
<id>dfac39ff8d6a080f5cb3faea44b53dbdec5e06ae</id>
<content type='text'>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10864 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10864 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</pre>
</div>
</content>
</entry>
<entry>
<title>* common.mk, configure.in, defines.h, eval.c, gc.c, main.c,</title>
<updated>2006-09-01T18:47:11+00:00</updated>
<author>
<name>akr</name>
<email>akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e</email>
</author>
<published>2006-09-01T18:47:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=53cec657a12da343a932c1cfd0293faf5b0e3b13'/>
<id>53cec657a12da343a932c1cfd0293faf5b0e3b13</id>
<content type='text'>
  numeric.c, ruby.h, ia64.s: backport IA64 HP-UX support.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10827 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
  numeric.c, ruby.h, ia64.s: backport IA64 HP-UX support.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10827 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</pre>
</div>
</content>
</entry>
</feed>
