12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- #include <openlibm_math.h>
- #include "fpmath.h"
- #include "math_private.h"
- DLLEXPORT long double
- nanl(const char *s)
- {
- union {
- union IEEEl2bits ieee;
- uint32_t bits[4];
- } u;
- _scan_nan(u.bits, 4, s);
- u.ieee.bits.exp = 0x7fff;
- u.ieee.bits.manh |= 1ULL << 47;
- return (u.ieee.e);
- }
|