Search found 16778 matches

by bob
Wed Sep 18, 2019 7:41 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Basic endgames
Replies: 16
Views: 619

Re: Basic endgames

Pfft. It shouldn't get more complicated. Already took too much time. Only counts distance from corner and distance between kings. Maybe hash table needs to be rewritten for it does not take symmetry into account? O wait I see I introduced a bug. To be provided. [d] 4k3/8/8/R7/4K3/8/8/8 w - - Depth ...
by bob
Wed Sep 18, 2019 7:39 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Crafty 25.3 MSVS 2019
Replies: 32
Views: 1788

Re: Crafty 25.3 MSVS 2019

There is still a problem, however. Works fine for unix-based systems. Still working on the windows version. Think I have it fixed in the source I sent you today, will wait for Joshua to confirm..
by bob
Tue Sep 17, 2019 4:54 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Crafty 25.3 MSVS 2019
Replies: 32
Views: 1788

Re: Crafty 25.3 MSVS 2019

That's the big question. :) I'm not a windows user, and I am not doing these compiles. Can you give me any hints to pass on to Joshua as to what exactly is needed to indicate "this is a 64 bit application"???
by bob
Mon Sep 16, 2019 5:22 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Crafty 25.3 MSVS 2019
Replies: 32
Views: 1788

Re: Crafty 25.3 MSVS 2019

OK, we are still mucking around with this. Joshua is compiling using the latest MSVC stuff. Here's our problem (I don't have a windows box to try this on so am getting compile help.) We can access __popcnt() with no problems including intrin.h. but we can NOT access __popcnt64(). Apparently the comp...
by bob
Sun Sep 15, 2019 4:20 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Crafty 25.3 MSVS 2019
Replies: 32
Views: 1788

Re: Crafty 25.3 MSVS 2019

Mike:

Still working on this. Send me the email you are using and I will send the source code once I finish this cleanup...
by bob
Sat Sep 14, 2019 6:04 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Crafty 25.3 MSVS 2019
Replies: 32
Views: 1788

Re: Crafty 25.3 MSVS 2019

For MSVC (_MSC_VER defined) you want: _BitScanForward64, _BitScanReverse64 for LSB, MSB: https://docs.microsoft.com/en-us/cpp/intrinsics/bitscanforward-bitscanforward64?view=vs-2019 Those seem to be ugly, returning the result through a pointer passed as an argument. Not so good for me as ALL of my ...
by bob
Thu Sep 12, 2019 4:40 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Back To The Beginning
Replies: 34
Views: 1992

Re: Back To The Beginning

most know I am a long-time assembly language user on dozens of architectures. The biggest gains I found in asm programming, thinking about the x86 stuff came from (1) accessing low-level hardware such as BSF/BSR before compiler intrinsics existed. (2) knowing more about the program's execution envir...
by bob
Thu Sep 12, 2019 4:24 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Back To The Beginning
Replies: 34
Views: 1992

Re: Back To The Beginning

thought I would reply out of interest. On my 2 year old MacBook, 2.2ghz i7 circa 2017 I see this number for perf 6 from start position: White(1): perft 6 total moves=119060324 time=3.11 White(1): Here's the next one: White(1): perft 7 total moves=3195901860 time=82.65 My perft was never optimized f...
by bob
Thu Sep 12, 2019 4:06 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Crafty 25.3 MSVS 2019
Replies: 32
Views: 1788

Re: Crafty 25.3 MSVS 2019

Thanks. Have made the changes and sent to Joshua to confirm under microsoft compiler.
by bob
Thu Sep 12, 2019 3:02 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Crafty 25.3 MSVS 2019
Replies: 32
Views: 1788

Re: Crafty 25.3 MSVS 2019

while Joshua and I try to get 25.3 cleaned up for windows, here is a windows question. In gcc (linux / macos) or clang (macOS) we have three bit manipulation intrinsics: # define PopCnt(v) __builtin_popcountll(v) # define LSB(v) __builtin_ctzll(v) # define MSB(v) (63 - __builtin_clzll(v)) For window...