File tree Expand file tree Collapse file tree 6 files changed +37
-43
lines changed
Expand file tree Collapse file tree 6 files changed +37
-43
lines changed Original file line number Diff line number Diff line change 560560@ cdecl _ismbstrail (ptr ptr )
561561@ cdecl _ismbstrail_l (ptr ptr ptr )
562562@ cdecl _isnan (double )
563- @ cdecl - stub - arch = x86_64 _isnanf (float )
563+ @ cdecl - arch = x86_64 _isnanf (float )
564564@ cdecl _isprint_l (long ptr )
565565@ cdecl _ispunct_l (long ptr )
566566@ cdecl _isspace_l (long ptr )
Original file line number Diff line number Diff line change 11
2- list (APPEND LIBCNTPR_FLOAT_SOURCE
3- float/isnan.c
4- )
5-
62list (APPEND CRT_FLOAT_SOURCE
73 ${LIBCNTPR_FLOAT_SOURCE}
84 float/chgsign.c
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ /*
2+ * PROJECT: ReactOS CRT
3+ * LICENSE: MIT (https://spdx.org/licenses/MIT)
4+ * PURPOSE: Implementation of _isnan.
5+ * COPYRIGHT: Copyright 2025 Timo Kreuzer <[email protected] > 6+ */
7+
8+ #include <float.h>
9+ #include <stdint.h>
10+
11+ int
12+ __cdecl
13+ _isnan (_In_ double _X )
14+ {
15+ union { double f ; uint64_t ui64 ; } u = { _X };
16+ return (u .ui64 & ~0x8000000000000000ull ) > 0x7FF0000000000000ull ;
17+ }
Original file line number Diff line number Diff line change 1+ /*
2+ * PROJECT: ReactOS CRT
3+ * LICENSE: MIT (https://spdx.org/licenses/MIT)
4+ * PURPOSE: Implementation of _isnanf.
5+ * COPYRIGHT: Copyright 2025 Timo Kreuzer <[email protected] > 6+ */
7+
8+ #include <math.h>
9+ #include <stdint.h>
10+
11+ int
12+ __cdecl
13+ _isnanf (_In_ float _X )
14+ {
15+ union { float f ; uint32_t ui32 ; } u = { _X };
16+ return (u .ui32 & ~0x80000000 ) > 0x7F800000 ;
17+ }
Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ list(APPEND LIBCNTPR_MATH_SOURCE
77 math /_fdsign.c
88 math /_finite.c
99 math /_finitef.c
10+ math /_isnan.c
11+ math /_isnanf.c
1012 math /_invoke_matherr.c
1113 math /abs.c
1214 math /div.c
You can’t perform that action at this time.
0 commit comments