Obstruction Difference initialization
Posted: Wed Apr 01, 2015 12:33 pm
I'm trying out various published move generators (mostly using cpw as my source). One of the ones I want to try/test/integrate is Obstruction Difference. As it states in the code snippet the masks[64][4] structures need initializing; can anyone supply/point me to code for that (I'm implementing in C/C++).
Also, I'm using MSFT VS2013 in x64 mode to compile so the bsr operation becomes:
from cpw...
...
mMS1B = -C64(1) << bsr64(lower | 1); // ms1b of lower (at least bit zero)
...
in my code:
...
#pragma warning (disable: 4146)
_BitScanReverse64(&index, lower | 1);
mMS1B = -C64(1) << index;
...
Any help appreciated,
Graham....
Also, I'm using MSFT VS2013 in x64 mode to compile so the bsr operation becomes:
from cpw...
...
mMS1B = -C64(1) << bsr64(lower | 1); // ms1b of lower (at least bit zero)
...
in my code:
...
#pragma warning (disable: 4146)
_BitScanReverse64(&index, lower | 1);
mMS1B = -C64(1) << index;
...
Any help appreciated,
Graham....