summaryrefslogtreecommitdiff
path: root/gcc/real.c
diff options
context:
space:
mode:
authorzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2003-09-29 21:59:58 +0000
committerzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2003-09-29 21:59:58 +0000
commit18ca88fe318871fc01753007eb5c1f529ddce2cf (patch)
tree3ffa6c76447279d5fa423d97c2799a73e8c09552 /gcc/real.c
parent0a8544b88dd2b777ee4355d06aa045243c321ffb (diff)
downloadgcc-18ca88fe318871fc01753007eb5c1f529ddce2cf.tar.gz
* real.c (real_sqrt): Use get_canonical_qnan directly.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71919 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/real.c')
-rw-r--r--gcc/real.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/real.c b/gcc/real.c
index 827ac9dd449..ea3d085afcf 100644
--- a/gcc/real.c
+++ b/gcc/real.c
@@ -4459,8 +4459,7 @@ real_sqrt (REAL_VALUE_TYPE *r, enum machine_mode mode,
/* Negative arguments return NaN. */
if (real_isneg (x))
{
- /* Mode is ignored for canonical NaN. */
- real_nan (r, "", 1, SFmode);
+ get_canonical_qnan (r, 0);
return false;
}