use alternate formula for acos asm to avoid loss of precision
[oweals/musl.git] / src / math / llrintl.c
index f1cc47ed453c82d07e40554f11b9f5cfea53b83b..32bb8b031be40c7c9a96fb643ad10eacaf473de7 100644 (file)
@@ -8,7 +8,7 @@ long long llrintl(long double x)
 {
        return llrint(x);
 }
-#else
+#elif defined(FE_INEXACT)
 /*
 see comments in lrint.c
 
@@ -27,4 +27,9 @@ long long llrintl(long double x)
        /* conversion */
        return x;
 }
+#else
+long long llrintl(long double x)
+{
+       return rintl(x);
+}
 #endif