[ODE] Re: Fw: Re: Deterministic simulation on multiple clients

Matthias Baas baas at ira.uka.de
Tue Mar 22 14:07:45 MST 2005


Henrik Grimm wrote:
> How can I modify the FPU word on Windows? Are there any API for this or 
> do I need to use assembler?

If you're using MSVC, then search for the function "_controlfp" in the 
documentation.


#inlude <float.h>

// set precision to 24 bits...
_controlfp(_PC_24, _MCW_PC);
// set precision to 53 bits...
_controlfp(_PC_53, _MCW_PC);
// set precision to 64 bits...
_controlfp(_PC_64, _MCW_PC);


- Matthias -


More information about the ODE mailing list