faster lrint and llrint functions
[musl] / src / math / lrintf.c
index caed7ca..34d1081 100644 (file)
@@ -1,6 +1,8 @@
-#define type            float
-#define roundit         rintf
-#define dtype           long
-#define fn              lrintf
+#include <math.h>
 
-#include "lrint.c"
+/* assumes LONG_MAX > 2^24, see comments in lrint.c */
+
+long lrintf(float x)
+{
+       return rintf(x);
+}