[ODE] SIMD ODE code?

Rodrigo Hernandez kwizatz at aeongames.com
Wed Feb 1 15:00:14 MST 2006


There is none that I know off, at least not an official one yet.

dVector3 is defined as float[4], and I added the "--with-arch=" 
parameter to configure in prevision for SIMD optimization, but
nothing more is there.

a good starting point towards SIMD integration would be modifying the 
macros in odemath.h to use SIMD intrinsic functions or inline asm and
defining dVector3 and dVector4 as __attribute__ ((aligned (16))).

Also, what flags are you using? in for a Pentium 4 you'd want to use 
-march=pentium4 |-mfpmat=sse and maybe throw in -malign-double.
|
Thomas Yeh wrote:

>Is there a SIMD optimized version of ODE somewhere?
>
>When I compile ODE with the SIMD and MMX flags turned on for gcc, the
>binaries generated seem to run slower on the P4 than the normal release
>compilation.
>
>
>_______________________________________________
>ODE mailing list
>ODE at q12.org
>http://q12.org/mailman/listinfo/ode
>
>  
>



More information about the ODE mailing list