summaryrefslogtreecommitdiff
path: root/libc/sysdeps/i386/fpu/w_sqrt.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/i386/fpu/w_sqrt.c')
-rw-r--r--libc/sysdeps/i386/fpu/w_sqrt.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libc/sysdeps/i386/fpu/w_sqrt.c b/libc/sysdeps/i386/fpu/w_sqrt.c
new file mode 100644
index 000000000..19b507417
--- /dev/null
+++ b/libc/sysdeps/i386/fpu/w_sqrt.c
@@ -0,0 +1,8 @@
+/* The inline __ieee754_sqrt is not correctly rounding; it's OK for
+ most internal uses in glibc, but not for sqrt itself. */
+#define __ieee754_sqrt __avoid_ieee754_sqrt
+#include <math.h>
+#include <math_private.h>
+#undef __ieee754_sqrt
+extern double __ieee754_sqrt (double);
+#include <math/w_sqrt.c>