|
From: Yuriy K. <yu...@ma...> - 2012-03-18 22:49:09
|
Robert Dodier wrote: > On 3/17/12, Ethan Merritt <merritt@u.washington.edu> wrote: > >> So it is annoying that the code, although paranoid about precision, >> is apparently not paranoid enough. > > Yeah, my suggestion is to run the loop for a number of iterations > determined in advance, to avoid floating point problems as much > as possible. I've attached a patch -- hope it's useful. > >> Does it do the same thing if you compile with optimization >> level -O0 ? > > I dunno -- it's actually somebody else's system, the bug isn't > triggered on mine. BTW, I think there should be similar problem with minitics code below. And, unlike `tics` case, I don't see any protection against infinite loop there. |