diff options
Diffstat (limited to 'libquadmath/math/nanq.c')
-rw-r--r-- | libquadmath/math/nanq.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libquadmath/math/nanq.c b/libquadmath/math/nanq.c new file mode 100644 index 000000000..bace47064 --- /dev/null +++ b/libquadmath/math/nanq.c @@ -0,0 +1,11 @@ +#include "quadmath-imp.h" + +__float128 +nanq (const char *tagp __attribute__ ((unused))) +{ + // FIXME -- we should use the argument + ieee854_float128 f; + f.ieee.exponent = 0x7fff; + f.ieee.mant_high = 0x1; + return f.value; +} |