This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: float to int conversions
On Wed, Feb 26, 2003 at 04:46:05PM -0800, Richard Henderson wrote:
> > That way we could enable FLOAT_FIX_NANS_TO_ZERO
> > and FLOAT_FIX_BOUND_OVERFLOW for Java, and C, C++ and Fortran would
> > just get FLOAT_FIX_BOUND_OVERFLOW, resulting in minimal overhead.
>
> Um, why would C, C++ and Fortran get FLOAT_FIX_BOUND_OVERFLOW?
Because the extra overhead is minimal. As you note, on powerpc we're
only talking about additional code on real -> unsigned conversions,
where we need to emit multiple instructions anyway.
--
Alan Modra
IBM OzLabs - Linux Technology Centre