POV-Ray : Newsgroups : povray.programming : language design (was Re: hash marks) : Re: language design (was Re: hash marks) Server Time
28 Jul 2024 18:20:20 EDT (-0400)
  Re: language design (was Re: hash marks)  
From: Vadim Sytnikov
Date: 15 Mar 2002 04:06:56
Message: <3c91b9b0$1@news.povray.org>
> at no point may a
> compiler alter the result of a computation.  If it does alter the result
of a
> computation it has to be considered a bug.

For the Intel compiler, that would only be true if intermediate result (of
the division of 1 by common divisor) would be stored in a 64-bit (double)
temporary variable. If it is kept in an fp register (80 bits), or in a 'long
double' temporary variable, then accuracy of the result would still be
*above* required by IEEE 754. Unfortunately, I can't remember whether that
(maintaining 80-bit accuracy across computations) was the case, but I
believe so...


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.