summaryrefslogtreecommitdiff
path: root/sysdeps/generic/s_csqrtf.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/generic/s_csqrtf.c')
-rw-r--r--sysdeps/generic/s_csqrtf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/generic/s_csqrtf.c b/sysdeps/generic/s_csqrtf.c
index b02c605a37..2fba69ce1b 100644
--- a/sysdeps/generic/s_csqrtf.c
+++ b/sysdeps/generic/s_csqrtf.c
@@ -1,5 +1,5 @@
/* Complex square root of float value.
- Copyright (C) 1997, 1998 Free Software Foundation, Inc.
+ Copyright (C) 1997, 1998, 2005 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Based on an algorithm by Stephen L. Moshier <moshier@world.std.com>.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
@@ -79,8 +79,8 @@ __csqrtf (__complex__ float x)
{
float r = __ieee754_sqrtf (0.5 * fabsf (__imag__ x));
- __real__ res = __copysignf (r, __imag__ x);
- __imag__ res = r;
+ __real__ res = r;
+ __imag__ res = __copysignf (r, __imag__ x);
}
else
{