mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 00:32:57 +00:00
[CRT:MATH] Implement _isnan and _isnanf
This commit is contained in:
parent
e01231bd49
commit
3f71ab80ad
6 changed files with 37 additions and 43 deletions
17
sdk/lib/crt/math/_isnanf.c
Normal file
17
sdk/lib/crt/math/_isnanf.c
Normal 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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue