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 } 24