Mercurial > hg > CbC > CbC_gcc
diff libquadmath/math/nanq.c @ 68:561a7518be6b
update gcc-4.6
author | Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 21 Aug 2011 07:07:55 +0900 |
parents | |
children | 1830386684a0 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/libquadmath/math/nanq.c Sun Aug 21 07:07:55 2011 +0900 @@ -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; +}