projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
d777c4d
)
Fix POPCNT support on mingw 64
author
Marco Costalba
<mcostalba@gmail.com>
Sat, 6 Oct 2012 10:53:41 +0000 (12:53 +0200)
committer
Marco Costalba
<mcostalba@gmail.com>
Sat, 6 Oct 2012 11:01:44 +0000 (13:01 +0200)
When using asm 'popcnt' instruction the given
operand registers must be of the same type.
No functional change.
src/bitcount.h
patch
|
blob
|
history
diff --git
a/src/bitcount.h
b/src/bitcount.h
index
a69ad8e
..
8843aba
100644
(file)
--- a/
src/bitcount.h
+++ b/
src/bitcount.h
@@
-96,9
+96,8
@@
inline int popcount<CNT_HW_POPCNT>(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
}