Manta Interactive Ray Tracer Development Mailing List

Text archives Help


Re: [MANTA] double & float & Real


Chronological Thread 
  • From: Abe Stephens <abe@sci.utah.edu>
  • To: manta@sci.utah.edu
  • Subject: Re: [MANTA] double & float & Real
  • Date: Mon, 23 May 2005 15:27:02 -0700

Cool, it looks like in a few places folks have just written double when they meant (or didn't mean) to write Real...

I'll fix when I come across it if necessary.... maybe if there is a computation that has to be in double for some reason, it could be tested in both cases and commented so no one else changes it..

Abe

Steven G. Parker wrote:

On May 23, 2005, at 3:28 PM, Abe Stephens wrote:


I thought that the idea of having a Real typedef was that it could be a global switch to change computation from being double precision to single precision etc..


Yes, this was the plan.

This seems to work in most parts of the code, however there is a lot of code, especially computation involving scalars and vectors where this isn't the case (i.e. the code only compiles if Real==double). Is this the desired behavior?


It is not the desired behavior, but the typedef Real is relatively new, so it hasn't been propogated everywhere.


Steve








Archive powered by MHonArc 2.6.16.

Top of page