summaryrefslogtreecommitdiff
path: root/libc/sysdeps/x86_64/fpu/e_sqrt.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/x86_64/fpu/e_sqrt.c')
-rw-r--r--libc/sysdeps/x86_64/fpu/e_sqrt.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libc/sysdeps/x86_64/fpu/e_sqrt.c b/libc/sysdeps/x86_64/fpu/e_sqrt.c
index d588a8b10..99120993f 100644
--- a/libc/sysdeps/x86_64/fpu/e_sqrt.c
+++ b/libc/sysdeps/x86_64/fpu/e_sqrt.c
@@ -1,5 +1,5 @@
/* Square root of floating point number.
- Copyright (C) 2002 Free Software Foundation, Inc.
+ Copyright (C) 2002, 2011 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -19,12 +19,14 @@
#include <math_private.h>
+#undef __ieee754_sqrt
double
__ieee754_sqrt (double x)
{
double res;
- asm ("sqrtsd %0, %1" : "=x" (res) : "x" (x));
+ asm ("sqrtsd %1, %0" : "=x" (res) : "xm" (x));
return res;
}
+strong_alias (__ieee754_sqrt, __sqrt_finite)