ReactOS
0.4.16-dev-91-g764881a
_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 */
19
_mm_setcsr
(
_mm_getcsr
() & ~
_MM_EXCEPT_MASK
);
20
21
/* Return the previous state */
22
return
retval;
23
}
__cdecl
#define __cdecl
Definition:
accygwin.h:79
_clearfp
unsigned int __cdecl _clearfp(void)
Definition:
_clearfp.c:11
_statusfp
__MINGW_NOTHROW _CRTIMP unsigned int __cdecl _statusfp(void)
Definition:
_statusfp.c:11
xmmintrin.h
_mm_setcsr
void _mm_setcsr(unsigned int a)
Definition:
xmmintrin.h:542
_MM_EXCEPT_MASK
#define _MM_EXCEPT_MASK
Definition:
xmmintrin.h:93
_mm_getcsr
unsigned int _mm_getcsr(void)
Definition:
xmmintrin.h:535
sdk
lib
crt
float
amd64
_clearfp.c
Generated on Sat Oct 5 2024 06:12:52 for ReactOS by
1.9.6