mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
64bit, from @source http://msdn.microsoft.com/en-us/library/c9676k6h.aspx
This commit is contained in:
parent
378a933894
commit
125901648a
|
|
@ -91,25 +91,27 @@ void Platform::setMathControlStateKnown()
|
|||
fldcw cw
|
||||
}
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
// @source http://msdn.microsoft.com/en-us/library/c9676k6h.aspx
|
||||
U32 Platform::getMathControlState( )
|
||||
{
|
||||
// @todo x64 See http://msdn.microsoft.com/en-us/library/c9676k6h.aspx
|
||||
return 0;
|
||||
U32 control_word = 0;
|
||||
S32 error = _controlfp_s( &control_word, _DN_FLUSH, _MCW_DN );
|
||||
|
||||
return error ? 0 : control_word;
|
||||
}
|
||||
|
||||
void Platform::setMathControlState( U32 state )
|
||||
{
|
||||
// @todo x64 See http://msdn.microsoft.com/en-us/library/c9676k6h.aspx
|
||||
U32 control_word = 0;
|
||||
_controlfp_s( &control_word, state, _MCW_DN );
|
||||
}
|
||||
|
||||
void Platform::setMathControlStateKnown( )
|
||||
{
|
||||
// @todo x64 See http://msdn.microsoft.com/en-us/library/c9676k6h.aspx
|
||||
U32 control_word = 0;
|
||||
_controlfp_s (&control_word, _PC_64, _MCW_DN);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Reference in a new issue