Pawn move generator: dispatch at compile time
authorMarco Costalba <mcostalba@gmail.com>
Sun, 19 Oct 2008 15:54:18 +0000 (17:54 +0200)
committerMarco Costalba <mcostalba@gmail.com>
Sun, 19 Oct 2008 19:42:12 +0000 (20:42 +0100)
commit68c78400c8eb1b9946caa93d6013eff1d985e577
treef8d883066cc4f6890093c946a0d0627b3cce7ec5
parent1bd1f5a29374f1f4b20e88c38f40b18604eb70d3
Pawn move generator: dispatch at compile time

Instead of function pointers use templates to
dispatch shift operations.

It is more clear and possibly also faster because
branches are removed at compile time.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/movegen.cpp