On 2009-01-30, MRAB <goo...@mrabarnett.plus.com> wrote:

>> What is the minimum amount of extra memory required to exchange two
>> 32-bit quantities? What would be the pseudocode that achieves this
>> minimum?
>
> x ^= y
> y ^= x
> x ^= y
>
> This is really only of use when working in assembly language.

And rarely then. ;)

[Readability counts everywhere.]

-- 
Grant

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to