This is the mail archive of the
mailing list for the GCC project.
Re: mul + div with 64 bit signed ints on IA32
On Wed, Sep 05, 2001 at 05:49:15AM -0700, Tim Prince wrote:
> My personal belief is that code should be using the C99 or f77
> round-to-nearest functions where they are wanted or at least
> acceptable, and that compilers should provide means for in-line
> compilation of such round-to-nearest operations. I don't find
> the Intel compiler option which substitutes round-to-nearest for
> all (int) casts so suitable.
I completely agree. If people care so much about performance,
they can be bothered to write rint(x) instead of (int)x.
As for proper inlining, we already have FIX_ROUND_EXPR for trees,
all we need is a fix_round rtx code to match.