<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Swap two variables using XOR</title>
	<link>http://betterexplained.com/articles/swap-two-variables-using-xor/</link>
	<description>Learning shouldn't hurt. Let's share the insights that made difficult ideas click.</description>
	<pubDate>Mon,  7 Jul 2008 00:00:23 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0</generator>

	<item>
		<title>by: xor swap &#171; Blog do Lameiro</title>
		<link>http://betterexplained.com/articles/swap-two-variables-using-xor/#comment-98186</link>
		<pubDate>Sat, 08 Dec 2007 03:09:47 +0000</pubDate>
		<guid>http://betterexplained.com/articles/swap-two-variables-using-xor/#comment-98186</guid>
					<description>[...] E aí pronto, suas variáveis estão invertidas. Pode acreditar (ou ler uma explicação bem mais detalhada). Legal né? [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] E aí pronto, suas variáveis estão invertidas. Pode acreditar (ou ler uma explicação bem mais detalhada). Legal né? [&#8230;]
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Kalid</title>
		<link>http://betterexplained.com/articles/swap-two-variables-using-xor/#comment-93259</link>
		<pubDate>Wed, 28 Nov 2007 03:21:31 +0000</pubDate>
		<guid>http://betterexplained.com/articles/swap-two-variables-using-xor/#comment-93259</guid>
					<description>Hi zezima, thanks for the info! That's a neat trick too -- you &quot;combine&quot; a and b in a similar way, and extract them as well.

One thing to watch out for is arithmetic overflow.</description>
		<content:encoded><![CDATA[<p>Hi zezima, thanks for the info! That&#8217;s a neat trick too &#8212; you &#8220;combine&#8221; a and b in a similar way, and extract them as well.</p>
<p>One thing to watch out for is arithmetic overflow.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: zezima</title>
		<link>http://betterexplained.com/articles/swap-two-variables-using-xor/#comment-93248</link>
		<pubDate>Wed, 28 Nov 2007 03:11:32 +0000</pubDate>
		<guid>http://betterexplained.com/articles/swap-two-variables-using-xor/#comment-93248</guid>
					<description>there is another way, tho i doubt if it's faster,

a=10;
b=15;

a=a+b;//a=25 b=15
b=a-b; //a=25 b=10
a=a-b; //a=15 b=10, swapped</description>
		<content:encoded><![CDATA[<p>there is another way, tho i doubt if it&#8217;s faster,</p>
<p>a=10;<br />
b=15;</p>
<p>a=a+b;//a=25 b=15<br />
b=a-b; //a=25 b=10<br />
a=a-b; //a=15 b=10, swapped
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
