]> git.sesse.net Git - stockfish/commitdiff
Rewrite bit counting functions
authorMarco Costalba <mcostalba@gmail.com>
Mon, 4 Oct 2010 09:45:04 +0000 (11:45 +0200)
committerMarco Costalba <mcostalba@gmail.com>
Mon, 4 Oct 2010 17:40:44 +0000 (18:40 +0100)
Get rid of macros and use templates instead,
this is safer and allows us fix the warning:

ISO C++ forbids braced-groups within expressions

That broke compilation with -pedantic flag under
gcc and POPCNT enabled.

No functional and no performance change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>

No differences found