projects
/
oweals
/
musl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
math: tgammal.c fixes
[oweals/musl.git]
/
src
/
math
/
lrintf.c
diff --git
a/src/math/lrintf.c
b/src/math/lrintf.c
index caed7ca5e4f56a5019f4cb76190e1e971b33cf13..ca0b6a46aaed3cf97d61724923593ea1b9d7aaf3 100644
(file)
--- a/
src/math/lrintf.c
+++ b/
src/math/lrintf.c
@@
-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);
+}