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

Michal Bacik michal at lonelycatgames.com
Thu Feb 13 02:30:01 2003


> MB> I wonder why:
> MB> typedef dReal dVector3[4];
>
> MB> Shouldn't it be:
> MB> typedef dReal dVector3[3];   ?
>
>     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).

- mb