use alternate formula for acos asm to avoid loss of precision
[oweals/musl.git] / src / math / llrintf.c
index f06a3c278eaf91e00f6dabd89ee7b7652fc27fb1..96949a006ea88146af15d967fc01f90431e34d19 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);
+}