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>
Mon, 20 Oct 2008 19:47:19 +0000 (21:47 +0200)
commite2af0e775b8943f0437c25b566ecf4165b15f518
treef8d883066cc4f6890093c946a0d0627b3cce7ec5
parentad1bb084ddde99261bcc20261a5ccee3bfb2abc7
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