between and among: worth Phobosization?
Ola Fosheim Grøstad" <ola.fosheim.grostad+dlang at gmail.com>
Ola Fosheim Grøstad" <ola.fosheim.grostad+dlang at gmail.com>
Wed Dec 18 10:55:40 PST 2013
On Wednesday, 18 December 2013 at 17:29:19 UTC, Andrei
Alexandrescu wrote:
> There's been a discussion on fast tristate logic recently in
> here.
Thanks for the tip. It uses one of the implementations I tested
too, a LUT in a shift register. However, I think I found the
regular lookup-table to be faster on x86 (takes one instruction):
e.g. AND:
static ubyte[16] lut = [0,0,0,0, 0,1,2,2, 0,2,2,2, 0,2,2,2];
value = lut[x*4+y]; //turn off boundary checks
More information about the Digitalmars-d
mailing list