summaryrefslogtreecommitdiff
path: root/src/math/llround.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/llround.c')
-rw-r--r--src/math/llround.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/math/llround.c b/src/math/llround.c
index c11fc3ba..4d94787d 100644
--- a/src/math/llround.c
+++ b/src/math/llround.c
@@ -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);
+}