This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: expand and truncate and 387
- To: egcs at cygnus dot com
- Subject: Re: expand and truncate and 387
- From: Stephen L Moshier <moshier at mediaone dot net>
- Date: Mon, 9 Nov 1998 17:50:32 -0500 (EST)
- cc: Marc Lehmann <pcg at goof dot com>
- Reply-To: moshier at mediaone dot net
> I don't think the x86 backend worries about rounding and truncation on
> fp->fp conversions.
Assuming the usual long-double precision control setting,
converting from lower to higher precision is a no-op.
Converting from higher to lower precision requires the value to
be stored out to memory and read back in. This actually does
truncate both the exponent and the significand to the format of the
narrower width.