Author: Dieter Buerssner
Date: 09:41:53 12/04/04
Go up one level in this thread
On December 04, 2004 at 07:37:40, martin fierz wrote: Of course I agree with the hashsize as a var (that was the main point of my first post). >come to think of it, could i have used > >index = key % (1<<loghashsize) ? would that be optimized? Perhaps. To me it looks kind of stupid, to try hard to give the optimizer a clue to produce good code, when you can do it yourself without any hazzle and disadvantage (and it will produce better code - no shift needed, no -1, ...). I did not try it. First I thought, 1U instead of 1 might be needed, but probably not (key will be unsigned). Cheers, Dieter
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.