Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: when a & is faster than a && ?

Author: Robert Hyatt

Date: 15:30:07 09/20/01

Go up one level in this thread


On September 20, 2001 at 18:24:07, Antonio Dieguez wrote:

>can you tell me?
>
>thanks.


They aren't the same thing.

a & b is a single boolean instruction.

a && b is not.  it turns into something like this in C:

r = (a && b) ? 1 : 0;

which takes more than one instruction to compute.




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.