Author: martin fierz
Date: 06:31:32 06/06/01
Go up one level in this thread
[snip] > >In this piece of crap code i see everywhere: > > if (side == WHITE) > tsq = B->WhiteKnights; > else > tsq = B->BlackKnights; > >Note you can eliminate these branches, which speeds code up bigtime. [snip] so, who can enlighten a dummy like me? how exactly can i eliminate branches like this? i admit that my checkers program has some of these too... although i mostly do it like this if(color==WHITE)
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.