[ODE] nan

Bram Stolk bram at sara.nl
Thu Aug 17 01:34:05 MST 2006


Ok,

Just committed to svn:
padding is now reset to 0, to comply with docs, and to avoid NaN

  Bram


-----Original Message-----
From: Jon Watte (ODE) [mailto:hplus-ode at mindcontrol.org]
Sent: Thu 8/17/2006 01:02
To: Bram Stolk
Cc: ode
Subject: Re: [ODE] nan
 


Bram Stolk wrote:
> I think we should set them to zero though.
> It makes dRFromAxisAndAngle() a little slower, but at least it conforms
> to spec, and NaN's are very nasty.
> There are probably more funcs that skip the init.
>   
It's not certain that it even makes the function any slower -- the cache 
line is already in memory at that point, or at least speculatively 
allocated. And if you overwrite all parts of a cache line, certain 
architectures can even optimize that to not need to fetch from memory on 
line evict. Although I doubt that'll matter in this case :-)

Cheers,

          / h+





More information about the ODE mailing list