faster lrint and llrint functions
[musl] / src / math / llrintf.c
index f06a3c2..e41b6d4 100644 (file)
@@ -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);
+}