unify strtof/strtod/strtold wrappers and fix initial whitespace issue
[oweals/musl.git] / src / math / llrint.c
index c0a40721c45e2ba6760285312fed28772b166726..4f583ae5536aa6152c3bab8671846da507f8f57e 100644 (file)
@@ -1,8 +1,8 @@
-#define type            double
-#define roundit         rint
-#define dtype           long long
-#define fn              llrint
-
-#include "lrint.c"
+#include <math.h>
 
+/* uses LLONG_MAX > 2^53, see comments in lrint.c */
 
+long long llrint(double x)
+{
+       return rint(x);
+}