[ODE] Why is dVector3 defined as dReal[4] ???

Mattias Fagerlund mattias at cambrianlabs.com
Thu Feb 13 02:43:01 2003


> >     IMHO, it's for the sake of speed.
> >     Take a look at how the FPU doing math you'll see.
> 
> Can you explain how's FPU doing math? I've been working with FPU for a
> while, and I know it loads one float (or double) at a time, not 4
> (except
> when you're using SIMD or similar extensions, which ODE doesn't seem to
> use).

When I asked the very same question as you do (why is "Why is dVector3 
defined as dReal[4]") the reply I got was "because of SIMD alignment". 

And even though ODE might not use it now, it may in the future.

cheers,
m