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 logarithm addition and subtraction


On Sun, 5 Aug 2018, MCC CS wrote:

this patch reduces calls to logarithm functions by
merging log a + log b => log a*b and

this makes sense.

+ /* x * logN(a) + y * logN(b) -> x * y * logN(a * b). */

this on the other hand... Can you explain the math?

--
Marc Glisse


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