From: Marco Costalba Date: Mon, 4 Oct 2010 09:45:04 +0000 (+0200) Subject: Rewrite bit counting functions X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=d4876dc96395f5592bfbc25b2eca2360db0655e6;hp=d4876dc96395f5592bfbc25b2eca2360db0655e6 Rewrite bit counting functions 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 ---