On Wed, Jul 13, 2011 at 2:22 PM, Amit Gupta <[email protected]> wrote:
> You can try this also
>
> do
> {
> sum = a ^ b;
> carry = a & b;
>
* carry <<= 0x1u;*
> a = sum;
> b = carry;
> }while (carry!=0);
>
>
I think one step is missing here, no? (I have added in bold)
--
--
You received this message because you are subscribed to the Google Groups
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/algogeeks?hl=en.