PR ipa/64503
* sreal.c (sreal::dump): Change unsigned format to signed for
m_exp value.
(sreal::to_double): Replace exp2 with scalbln.
From-SVN: r219378
+2015-01-09 Martin Liska <mliska@suse.cz>
+
+ PR ipa/64503
+ * sreal.c (sreal::dump): Change unsigned format to signed for
+ m_exp value.
+ (sreal::to_double): Replace exp2 with scalbln.
+
2015-01-09 Martin Liska <mliska@suse.cz>
* cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
void
sreal::dump (FILE *file) const
{
- fprintf (file, "(%" PRIu64 " * 2^%d)", m_sig, m_exp);
+ fprintf (file, "(%" PRIi64 " * 2^%d)", m_sig, m_exp);
}
DEBUG_FUNCTION void
{
double val = m_sig;
if (m_exp)
- val *= exp2 (m_exp);
+ val = scalbln (val, m_exp);
return val;
}