mirror of
https://github.com/reactos/reactos.git
synced 2025-07-23 03:43:44 +00:00

1. move all inline asm to folder i386 2. to do : seh.s should be rewrites to intel syntax 3. to do : almost all c files in folders i386 need be convert to true asm instead using inline asm 4. add dection for x86 arch in rbuild for each found I have done svn path=/trunk/; revision=23790
29 lines
498 B
C
29 lines
498 B
C
/*
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
* PROJECT: ReactOS system libraries
|
|
* FILE: lib/crt/??????
|
|
* PURPOSE: Unknown
|
|
* PROGRAMER: Unknown
|
|
* UPDATE HISTORY:
|
|
* 25/11/05: Added license header
|
|
*/
|
|
|
|
#include <precomp.h>
|
|
|
|
/*
|
|
* @implemented
|
|
*/
|
|
unsigned int _statusfp (void)
|
|
{
|
|
|
|
register unsigned short __res;
|
|
#ifdef __GNUC__
|
|
__asm__ __volatile__ (
|
|
"fstsw %0 \n\t"
|
|
// "movzwl %ax, %eax"
|
|
:"=a" (__res)
|
|
);
|
|
#else
|
|
#endif /*__GNUC__*/
|
|
return __res;
|
|
}
|