{
return lrint(x);
}
-#else
+#elif defined(FE_INEXACT)
/*
see comments in lrint.c
*/
long lrintl(long double x)
{
+ #pragma STDC FENV_ACCESS ON
int e;
e = fetestexcept(FE_INEXACT);
/* conversion */
return x;
}
+#else
+long lrintl(long double x)
+{
+ return rintl(x);
+}
#endif