summaryrefslogtreecommitdiff
path: root/sysdeps/i386/fpu/w_sqrt_compat.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/i386/fpu/w_sqrt_compat.c')
-rw-r--r--sysdeps/i386/fpu/w_sqrt_compat.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/sysdeps/i386/fpu/w_sqrt_compat.c b/sysdeps/i386/fpu/w_sqrt_compat.c
new file mode 100644
index 0000000000..dd485f4b88
--- /dev/null
+++ b/sysdeps/i386/fpu/w_sqrt_compat.c
@@ -0,0 +1,9 @@
+/* The inline __ieee754_sqrt is not correctly rounding; it's OK for
+ most internal uses in glibc, but not for sqrt itself. */
+#define NO_MATH_REDIRECT
+#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_compat.c>