projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add C stub for sqrtl (already implemented in asm on i386 and x86_64)
[musl]
/
src
/
math
/
lrintf.c
diff --git
a/src/math/lrintf.c
b/src/math/lrintf.c
index
caed7ca
..
ca0b6a4
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);
+}