mirror of
https://github.com/reactos/reactos.git
synced 2025-05-01 11:39:58 +00:00
15 lines
381 B
C
15 lines
381 B
C
/*
|
|
* 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);
|
|
}
|