/* Emulation for sqrtl.
Contributed by Paolo Bonzini
- Copyright 2002-2003, 2007, 2009-2011 Free Software Foundation, Inc.
+ Copyright 2002-2003, 2007, 2009-2014 Free Software Foundation, Inc.
This file is part of gnulib.
/* 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
return y;
}
+
+#endif