Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: FIXED: Hash table bug

Author: Fabien Letouzey

Date: 04:44:47 05/14/04

Go up one level in this thread


On May 13, 2004 at 16:15:54, Dieter Buerssner wrote:

>On May 13, 2004 at 14:10:40, Fabien Letouzey wrote:
>
>>I've always used longjmp() (defined in <setjmp.h>) to stop the search.
>>Some say it's not portable ...
>>
>>It's part of the C language so it must be supported by all compilers/platforms.
>
>Yes. Although one might need to be very careful when using it in C++ code (what
>happens with the destructors?). According to the C Standard one also has to be
>careful with variable length arrays (but I guess this feature is not much used
>in chess engines).
>
>It might also make optimization by the compiler more difficult/less efficient
>(probably only in the function where setjmp is called).
>
>Regards,
>Dieter

It can always be isolated in a wrapper function.
Also it's only called at the root of the search.

Fabien.




This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.