As a precursor to magic slider attack generation, the classic 4-ray, loop-free, branch-free method has some advantages, including being easy to understand. It has the same interface.
Ok, This is the method that i'm currently using.
After taking a wile, i modified my perft function, counting leaf nodes after generating them, without doing/undoing the move.
After that, my perft "speed" reaches 19 Mnps, but this is really false... this measure has no sense for me.
because I can't predict the speed of my search with this function. Is only a measure of how many moves i can generate per second... not how many positions i can reach per second (wich is what i was looking for)[/quote]