2007-03-14 20:24:57 +00:00
|
|
|
/*
|
|
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
|
|
* PROJECT: ReactOS system libraries
|
2015-09-19 13:50:57 +00:00
|
|
|
* FILE: lib/sdk/crt/float/i386/clearfp.c
|
2007-03-14 20:24:57 +00:00
|
|
|
* PURPOSE: Unknown
|
|
|
|
* PROGRAMER: Unknown
|
|
|
|
* UPDATE HISTORY:
|
|
|
|
* 25/11/05: Added license header
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <precomp.h>
|
|
|
|
|
|
|
|
unsigned int _statusfp( void );
|
|
|
|
|
2008-06-06 17:49:24 +00:00
|
|
|
/*********************************************************************
|
|
|
|
* _clearfp (MSVCRT.@)
|
2007-03-14 20:24:57 +00:00
|
|
|
*/
|
2008-06-06 17:49:24 +00:00
|
|
|
unsigned int CDECL _clearfp(void)
|
2007-03-14 20:24:57 +00:00
|
|
|
{
|
2008-06-06 17:49:24 +00:00
|
|
|
unsigned int retVal = _statusfp();
|
2009-08-07 09:36:53 +00:00
|
|
|
#if defined(__GNUC__)
|
2008-06-06 17:49:24 +00:00
|
|
|
__asm__ __volatile__( "fnclex" );
|
2007-03-14 20:24:57 +00:00
|
|
|
#else
|
2009-08-07 09:36:53 +00:00
|
|
|
__asm fnclex;
|
2008-06-06 17:49:24 +00:00
|
|
|
#endif
|
|
|
|
return retVal;
|
2007-03-14 20:24:57 +00:00
|
|
|
}
|
|
|
|
|