about summary refs log tree commit diff
path: root/src/math/llrint.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/llrint.c')
-rw-r--r--src/math/llrint.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/math/llrint.c b/src/math/llrint.c
index c0a40721..ee783b8e 100644
--- a/src/math/llrint.c
+++ b/src/math/llrint.c
@@ -1,8 +1,8 @@
-#define type            double
-#define roundit         rint
-#define dtype           long long
-#define fn              llrint
-
-#include "lrint.c"
+#include <math.h>
 
+/* assumes LLONG_MAX > 2^53, see comments in lrint.c */
 
+long long llrint(double x)
+{
+	return rint(x);
+}