[CRT:MATH] Implement _isnan and _isnanf

This commit is contained in:
Timo Kreuzer 2024-11-15 16:36:19 +02:00
parent e01231bd49
commit 3f71ab80ad
6 changed files with 37 additions and 43 deletions

View file

@ -0,0 +1,17 @@
/*
* PROJECT: ReactOS CRT
* LICENSE: MIT (https://spdx.org/licenses/MIT)
* PURPOSE: Implementation of _isnanf.
* COPYRIGHT: Copyright 2025 Timo Kreuzer <timo.kreuzer@reactos.org>
*/
#include <math.h>
#include <stdint.h>
int
__cdecl
_isnanf(_In_ float _X)
{
union { float f; uint32_t ui32; } u = { _X };
return (u.ui32 & ~0x80000000) > 0x7F800000;
}