Files
FEX-Emu--FEX/Source/Windows/Common/CRT/Musl/isnan.c
T
2024-08-07 15:49:41 +00:00

17 lines
344 B
C

// SPDX-License-Identifier: MIT
// SPDX-FileCopyrightText: Copyright © 2005-2020 Rich Felker, et al.
static unsigned long long __DOUBLE_BITS(double __f) {
union {
double __f;
unsigned long long __i;
} __u;
__u.__f = __f;
return __u.__i;
}
int __isnan(double x) {
return (__DOUBLE_BITS(x) & -1ULL >> 1) > 0x7ffULL << 52;
}