Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: A nice programming riddle!

Author: Omid David

Date: 00:50:36 07/03/02

Go up one level in this thread


On July 02, 2002 at 20:31:30, Dan Andersson wrote:

>The proposition is not as clear cut as you might think. For a definitive answer
>you might look up Paul Hsieh's programming pages. For an x86 arhitecture the
>answer depends: http://www.azillionmonkeys.com/qed/case3.html
>
>MvH Dan Andersson

There are many interesting ways to do it, but the most interesting way I found
is:

a ^= b ^= a ^= b;

Omid.



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.