mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
[CRT] Implement _set_statfp
This commit is contained in:
parent
61cc62d1b2
commit
4d50f81419
2 changed files with 16 additions and 0 deletions
15
sdk/lib/crt/math/amd64/_set_statfp.c
Normal file
15
sdk/lib/crt/math/amd64/_set_statfp.c
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
/*
|
||||||
|
* PROJECT: ReactOS CRT library
|
||||||
|
* LICENSE: MIT (https://spdx.org/licenses/MIT)
|
||||||
|
* PURPOSE: x64 implementation of _set_statfp
|
||||||
|
* COPYRIGHT: Copyright 2022 Timo Kreuzer <timo.kreuzer@reactos.org>
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <xmmintrin.h>
|
||||||
|
|
||||||
|
__ATTRIBUTE_SSE__
|
||||||
|
void _set_statfp(uintptr_t mask)
|
||||||
|
{
|
||||||
|
unsigned int csr = _mm_getcsr();
|
||||||
|
_mm_setcsr((mask & _MM_EXCEPT_MASK) | csr);
|
||||||
|
}
|
|
@ -53,6 +53,7 @@ if(ARCH STREQUAL "i386")
|
||||||
)
|
)
|
||||||
elseif(ARCH STREQUAL "amd64")
|
elseif(ARCH STREQUAL "amd64")
|
||||||
list(APPEND LIBCNTPR_MATH_SOURCE
|
list(APPEND LIBCNTPR_MATH_SOURCE
|
||||||
|
math/amd64/_set_statfp.c
|
||||||
math/ceil.c
|
math/ceil.c
|
||||||
math/cos.c
|
math/cos.c
|
||||||
math/sin.c
|
math/sin.c
|
||||||
|
|
Loading…
Reference in a new issue