Author: Gunnar Andersson
Date: 01:41:59 11/19/02
Go up one level in this thread
On November 18, 2002 at 20:09:27, Eugene Nalimov wrote: >Indirect call costs *at least* the same as conditional branch, sometimes much >more. I've discovered that arrays of function pointers can outperform switch statements, at least with GCC and many cases. To me the generated assembly code for the switch statement contains a jump table anyway, and there's some extra assembly code essentially performing range checking. / Gunnar
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.