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