[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
## Re: [bug-gawk] New multiplication algorighm

**From**: |
Andrew J. Schorr |

**Subject**: |
Re: [bug-gawk] New multiplication algorighm |

**Date**: |
Fri, 19 Apr 2019 11:45:40 -0400 |

**User-agent**: |
Mutt/1.5.21 (2010-09-15) |

On Fri, Apr 19, 2019 at 12:47:33PM +0200, Peter Brooks wrote:
>* *
>* I was just wondering if there were any plans to use this new algorithm I the *
>* future.*
>* *
>* https://www.sciencealert.com/mathematicians-just-discovered-an-astonishing-new-way-to-multiply-numbers-together*
>* *
That's theoretically interesting, but I don't think it's a gawk issue. If I'm
not mistaken, gawk multiplies numbers either by using the CPU's built-in
multiplication capability for integer or floating-point values, or by using a
compiler algorithm if the CPU doesn't directly support multiplying the types in
question, or by using the mpfr library when -M is used. So if this new
algorithm is to be used, it will have to be implemented in the CPU, the C
compiler, or the MPFR library. I think the only place this might be
relevant is in the MPFR library for handling very large numbers...
Regards,
Andy