[PATCH] Faster x^(2^m) for mpexp using __sqr
Siddhesh Poyarekar
siddhesh@redhat.com
Thu Feb 14 02:24:00 GMT 2013
On Wed, Feb 13, 2013 at 01:07:00PM -0600, Ryan S. Arnold wrote:
> In principle this looks fine but I'd like to see some comments
> regarding what is happening in the while loops.
Oh it is the same as __mul, but I realize now that the new __mul code
is not in Power. I'll add comments to the power bits before I commit.
> I'm not fond of the redundant code but that's how mpa.c is done at the
> moment for powerpc. Perhaps we can merge in the future.
It won't be redundant once the stock code uses integer math (__sqr
included). I just need to figure out a way to make it such that Power
code can continue to have the benefit of using its fpus.
Siddhesh
More information about the Libc-alpha
mailing list