Re: A83: NOW I REALLY DON'T KNOW WHAT'S GOING ON


[Prev][Next][Index][Thread]

Re: A83: NOW I REALLY DON'T KNOW WHAT'S GOING ON




> It's quite simple actually, lets say a=5. Then a-1=4. Since 4=0100 in
> binary, you exclusive or the 0 bit and get 0101b. now add 1 and get 0110b
> which is 6. Let's say a=6. Then a-1=5 which is 0101 in binary. xor the 0
> bit, get 0100b. Add 1 and now we have 0101b which is 5.

How t.f. did you figure that out?!  Is it just practice?  Damn, that's
cool...

Sorry, kind of a pointless post (mine), but...:)

James.