projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
maint.mk: fix tight-scope.mk generation in VPATH builds.
[gnulib.git]
/
lib
/
sqrtl.c
diff --git
a/lib/sqrtl.c
b/lib/sqrtl.c
index
299e70d
..
6795d66
100644
(file)
--- a/
lib/sqrtl.c
+++ b/
lib/sqrtl.c
@@
-23,7
+23,17
@@
/* Specification. */
#include <math.h>
/* Specification. */
#include <math.h>
-#include <float.h>
+#if HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
+
+long double
+sqrtl (long double x)
+{
+ return sqrt (x);
+}
+
+#else
+
+# include <float.h>
/* A simple Newton-Raphson method. */
long double
/* A simple Newton-Raphson method. */
long double
@@
-57,3
+67,5
@@
sqrtl (long double x)
return y;
}
return y;
}
+
+#endif