This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Optimize x*x*x*x*x*x using 3 multiplications.


On Tue, Jul 29, 2003 at 12:35:08PM -0600, Roger Sayle wrote:
> An even
> better solution would be to provide a __builtin_powi function directly
> that is always guaranteed to expanded inline, independently of -Os and
> -ffast-math, and that expands to a loop (that can be unrolled!) even
> when the second argument isn't constant.

Ooooh.  I like that idea.  I might even try implementing that one.


-- 
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace.  We seek
not your counsel, nor your arms.  Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen.            - Samuel Adams


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]