diff options
author | kargl <kargl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-10-11 23:35:27 +0000 |
---|---|---|
committer | kargl <kargl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-10-11 23:35:27 +0000 |
commit | e3126e9b7f13fb6e266828bef1ddadeb280b1717 (patch) | |
tree | 3f30663653c6b162b724455b8cf3773c387ba347 /libgfortran/intrinsics/c99_functions.c | |
parent | 5e2a41336909f37826a7f599a2156add1019f97d (diff) | |
download | gcc-e3126e9b7f13fb6e266828bef1ddadeb280b1717.tar.gz |
PR libgfortran/24313
* c99_functions.c (csqrtf, csqrt): Fix choice of branch cut. Note
csqrt{f} were imported from glibc, and this bug is still present
there. glibc PR is 1146.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@105274 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran/intrinsics/c99_functions.c')
-rw-r--r-- | libgfortran/intrinsics/c99_functions.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libgfortran/intrinsics/c99_functions.c b/libgfortran/intrinsics/c99_functions.c index 2417e69cbed..906a85abfef 100644 --- a/libgfortran/intrinsics/c99_functions.c +++ b/libgfortran/intrinsics/c99_functions.c @@ -669,7 +669,7 @@ csqrtf (float complex z) r = sqrtf (0.5 * fabsf (im)); - COMPLEX_ASSIGN (v, copysignf (r, im), r); + COMPLEX_ASSIGN (v, r, copysignf (r, im)); } else { @@ -722,7 +722,7 @@ csqrt (double complex z) r = sqrt (0.5 * fabs (im)); - COMPLEX_ASSIGN (v, copysign (r, im), r); + COMPLEX_ASSIGN (v, r, copysign (r, im)); } else { |