X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fbitcount.h;h=2300bc96452cef857a819b7ab73b3ddbe8f2cf3e;hp=a69ad8e8418535fbe01645368800815d19491b9f;hb=b2fadf32aa57012f2140bc32d5f2433efae3e730;hpb=9204a60dbbebf7e319bb588acc91bf691a3ede9a diff --git a/src/bitcount.h b/src/bitcount.h index a69ad8e8..2300bc96 100644 --- a/src/bitcount.h +++ b/src/bitcount.h @@ -1,7 +1,7 @@ /* Stockfish, a UCI chess playing engine derived from Glaurung 2.1 Copyright (C) 2004-2008 Tord Romstad (Glaurung author) - Copyright (C) 2008-2012 Marco Costalba, Joona Kiiski, Tord Romstad + Copyright (C) 2008-2013 Marco Costalba, Joona Kiiski, Tord Romstad Stockfish is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -96,9 +96,8 @@ inline int popcount(Bitboard b) { #else - unsigned long ret; - __asm__("popcnt %1, %0" : "=r" (ret) : "r" (b)); - return ret; + __asm__("popcnt %1, %0" : "=r" (b) : "r" (b)); + return b; #endif }