Grant Osborne wrote:Yes, I used the magics and shifts from Pradu's post 3 in this thread.
Hm, seems like I was a bit sloppy when making the rook indices (I did it manually). It could be a bit better by applying this pattern by repacing with necessary address space:
Code:
Idx[64]={
00,01,02,03,04,05,06,07,
01,00,03,02,05,04,07,06,
08,09,10,11,12,13,14,15,
09,08,11,10,13,12,15,14,
16,17,18,19,20,21,22,23,
17,16,19,18,21,20,23,22,
24,25,26,27,28,29,30,31,
25,24,27,26,29,28,31,30,
};
Regards, Lasse
As you know, 11-bit keys exist for two of the corners for rooks, there are also 10-bit keys for five of the edge squares. By substituting these better magics and using the pattern above brings the size of the table down to 448k.
Grant
Wow! I guess that additional "and" pays off.