math: tgammal.c fixes
[oweals/musl.git] / src / math / llround.c
index c11fc3ba002005f1ccde7ee6b83ea5d365a4aef4..4d94787d6227596e0d692622d320f159d8396694 100644 (file)
@@ -1,10 +1,6 @@
-#define type            double
-#define roundit         round
-#define dtype           long long
-#define DTYPE_MIN       LLONG_MIN
-#define DTYPE_MAX       LLONG_MAX
-#define fn              llround
-
-#include "lround.c"
-
+#include <math.h>
 
+long long llround(double x)
+{
+       return round(x);
+}