General

Profile

torimus (Torimus GL)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 1 1

Activity

07/28/2013

05:39 PM Ruby Bug #8697: Fixnum complement operator issue
=begin
As you've admitted, ~ operator implementation does more than ((*just flipping of it's each bit*)). It also does an additional step when converting to two's complement by doing bitwise or with number 1 ((({return ~num | FIXNUM_FLA...
torimus (Torimus GL)
04:02 AM Ruby Bug #8697: Fixnum complement operator issue
=begin
When one's complement is applied to zero, the result is ((*not*)) -1 but so called "negative zero", ie. -0.
What you are talking about is two's complement, ie. "the value of 1 is then added to the resulting value of bitwise not op...
torimus (Torimus GL)

07/27/2013

08:23 PM Ruby Bug #8697 (Rejected): Fixnum complement operator issue
=begin
By the ((<documentation|URL:http://www.ruby-doc.org/core-2.0/Fixnum.html#method-i-7E>)), bitwise complement operator ((*~*)) to Fixnum instance should do ((*one's complement*)) with just flipping all bits. In fact, current implem...
torimus (Torimus GL)

Also available in: Atom