view libquadmath/math/nanq.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 561a7518be6b
children
line wrap: on
line source

#include "quadmath-imp.h"

__float128
nanq (const char *tagp __attribute__ ((unused)))
{
  // FIXME -- we should use the argument
  ieee854_float128 f = { 0 };
  f.ieee_nan.exponent = 0x7fff;
  f.ieee_nan.quiet_nan = 0x1;
  return f.value;
}