mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
64bit, from @source http://msdn.microsoft.com/en-us/library/c9676k6h.aspx
This commit is contained in:
parent
378a933894
commit
125901648a
1 changed files with 9 additions and 7 deletions
|
|
@ -91,25 +91,27 @@ void Platform::setMathControlStateKnown()
|
||||||
fldcw cw
|
fldcw cw
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
// @source http://msdn.microsoft.com/en-us/library/c9676k6h.aspx
|
||||||
U32 Platform::getMathControlState( )
|
U32 Platform::getMathControlState( )
|
||||||
{
|
{
|
||||||
// @todo x64 See http://msdn.microsoft.com/en-us/library/c9676k6h.aspx
|
U32 control_word = 0;
|
||||||
return 0;
|
S32 error = _controlfp_s( &control_word, _DN_FLUSH, _MCW_DN );
|
||||||
|
|
||||||
|
return error ? 0 : control_word;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Platform::setMathControlState( U32 state )
|
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( )
|
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
|
#endif
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue