re PR other/64370 (sreal.c:125:23: error: 'exp2' was not declared in this scope)

PR other/64370
	* sreal.c (sreal::to_double): Use ldexp instead of scalbnl.

From-SVN: r219489
This commit is contained in:
Jakub Jelinek 2015-01-12 21:30:09 +01:00 committed by Jakub Jelinek
parent 351f160060
commit aadb701b4c
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2015-01-12 Jakub Jelinek <jakub@redhat.com>
PR other/64370
* sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
2015-01-12 Jeff Law <law@redhat.com>
PR target/64461

View File

@ -122,7 +122,7 @@ sreal::to_double () const
{
double val = m_sig;
if (m_exp)
val = scalbln (val, m_exp);
val = ldexp (val, m_exp);
return val;
}