xref: /netbsd-src/external/gpl3/gcc.old/dist/libquadmath/math/nanq.c (revision a45db23f655e22f0c2354600d3b3c2cb98abf2dc)
1 #include "quadmath-imp.h"
2 
3 __float128
4 nanq (const char *tagp __attribute__ ((unused)))
5 {
6   // FIXME -- we should use the argument
7   ieee854_float128 f = { 0 };
8   f.ieee_nan.exponent = 0x7fff;
9   f.ieee_nan.quiet_nan = 0x1;
10   return f.value;
11 }
12