Author: Sune Fischer
Date: 06:09:01 04/16/04
Go up one level in this thread
On April 16, 2004 at 07:31:48, Tord Romstad wrote: >> >>Sune's expand to 0x88 only needs two instructions, because ~7 is a compile time >>constant. But for Compress there seems no way to get rid of the third >>"expensive" shift or div 2 ;-) >> >>x88 = bb + (bb&~7); >>bb = (x88 + (x88&7)) >> 1; > >Cool. With the help of you, Sune, and Tony, my Expand() and Compress() >macros are now both a tiny bit faster than before. Thanks to all of you! > >Tord Just so so know, I didn't invent the trick. Wish I had though and I like to think that I could and would have had I not seen it posted here a long time ago :) I always collect these little code nuggets, never know when you might need them. -S.
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.