math: tgammal.c fixes
[oweals/musl.git] / src / math / lrintf.c
index caed7ca5e4f56a5019f4cb76190e1e971b33cf13..ca0b6a46aaed3cf97d61724923593ea1b9d7aaf3 100644 (file)
@@ -1,6 +1,8 @@
-#define type            float
-#define roundit         rintf
-#define dtype           long
-#define fn              lrintf
+#include <math.h>
 
-#include "lrint.c"
+/* uses LONG_MAX > 2^24, see comments in lrint.c */
+
+long lrintf(float x)
+{
+       return rintf(x);
+}