ReactOS  0.4.15-dev-5463-g138eb58
_clearfp.c
Go to the documentation of this file.
1 /*
2  * PROJECT: ReactOS CRT
3  * LICENSE: MIT (https://spdx.org/licenses/MIT)
4  * PURPOSE: x64 implementation of _clearfp
5  * COPYRIGHT: Copyright 2022 Timo Kreuzer <timo.kreuzer@reactos.org>
6  */
7 
8 #include <float.h>
9 #include <xmmintrin.h>
10 
11 unsigned int __cdecl _clearfp(void)
12 {
13  unsigned int retval;
14 
15  /* Get current status value */
16  retval = _statusfp();
17 
18  /* Clear the exception mask */
20 
21  /* Return the previous state */
22  return retval;
23 }
__MINGW_NOTHROW _CRTIMP unsigned int __cdecl _statusfp(void)
Definition: _statusfp.c:11
unsigned int _mm_getcsr(void)
Definition: xmmintrin.h:535
#define __cdecl
Definition: accygwin.h:79
void _mm_setcsr(unsigned int a)
Definition: xmmintrin.h:542
unsigned int __cdecl _clearfp(void)
Definition: _clearfp.c:11
#define _MM_EXCEPT_MASK
Definition: xmmintrin.h:93