This is the mail archive of the gcc@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.


> Optimize x*x*x*x*x*x using 3 multiplications.

It is interesting to note that in general this kind of optimization decreases
accuracy (it is more accurate to do the full 5 multiplications). Nevertheless
it is probably reasonable. In Ada 83, this optimization is in fact not
permitted, since it is not guaranteed to have sufficient accuracy. Ada 95
deliberately relaxed this accuracy rule to allow this kind of optimization.


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