gnugo-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gnugo-devel] arend_1_33.5: Try to address VC inconsistencies


From: Trevor Morris
Subject: Re: [gnugo-devel] arend_1_33.5: Try to address VC inconsistencies
Date: Wed, 17 Apr 2002 09:29:38 -0400

At 02:45 AM 4/17/2002 +0200, Arend Bayer wrote:

>On Tue, 16 Apr 2002, Gunnar Farneback wrote:
>
>> Arend wrote:
>> > Looking again at gg_normalize_float, I am not really sure that this 
>> > function
>> > can reliably solve the problems. Why should we safely assume that
>> >       90*0.01 - 90*0.01
>> > gets computed as equal to zero, if we cannot assume this for
>> >       (1.0-0.1)-(1.0-0.1)?
>> 
>> This is probably a question of evaluation order. Unless the compiler
>> is so aggressively optimizing code that it inlines gg_normalize_float()
>> and significantly reorders its operations, I think the function is
>> safe enough.
>
>Hmm, have you looked at the code in optics.c that was resonsible for the
>VC failures? To me it seems highly unlikely that a compiler optimization
>would result in changing the order of computations there. And if it does,
>then inlining gg_normalize_float does not look so unlikely either.
>(Of course, gcc doesn't inline because we don't tell him to.)
>
>Btw Trevor, what processor is your VC built running on?

Built & run on an Intel pentium III 933

-Trevor




reply via email to

[Prev in Thread] Current Thread [Next in Thread]