ReactOS 0.4.15-dev-8058-ga7cbb60
clearfp.c
Go to the documentation of this file.
1/*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS system libraries
4 * FILE: lib/sdk/crt/float/i386/clearfp.c
5 * PURPOSE: Unknown
6 * PROGRAMER: Unknown
7 * UPDATE HISTORY:
8 * 25/11/05: Added license header
9 */
10
11#include <precomp.h>
12
13unsigned int _statusfp( void );
14
15/*********************************************************************
16 * _clearfp (MSVCRT.@)
17 */
18unsigned int CDECL _clearfp(void)
19{
20 unsigned int retVal = _statusfp();
21#if defined(__GNUC__)
22 __asm__ __volatile__( "fnclex" );
23#else
24 __asm fnclex;
25#endif
26 return retVal;
27}
28
unsigned int CDECL _clearfp(void)
Definition: clearfp.c:18
unsigned int _statusfp(void)
Definition: _statusfp.c:11
#define CDECL
Definition: compat.h:29
__asm__(".p2align 4, 0x90\n" ".seh_proc __seh2_global_filter_func\n" "__seh2_global_filter_func:\n" "\tsub %rbp, %rax\n" "\tpush %rbp\n" "\t.seh_pushreg %rbp\n" "\tsub $32, %rsp\n" "\t.seh_stackalloc 32\n" "\t.seh_endprologue\n" "\tsub %rax, %rdx\n" "\tmov %rdx, %rbp\n" "\tjmp *%r8\n" "__seh2_global_filter_func_exit:\n" "\t.p2align 4\n" "\tadd $32, %rsp\n" "\tpop %rbp\n" "\tret\n" "\t.seh_endproc")