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