math: raise invalid flag in ilogb*.c on +-0, +-inf and nan
[musl] / src / math / llrintf.c
index f06a3c2..96949a0 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"
+/* uses LLONG_MAX > 2^24, see comments in lrint.c */
+
+long long llrintf(float x)
+{
+       return rintf(x);
+}