[PATCH] Faster x^(2^m) for mpexp using __sqr
Siddhesh Poyarekar
siddhesh@redhat.com
Wed Feb 13 08:18:00 GMT 2013
On Wed, Feb 13, 2013 at 09:05:58AM +0100, Andreas Jaeger wrote:
> Thanks, this is fine.
>
> I noticed that there's some other code in dbl-64 that does squaring and
> could use __sqr instead of __mul, e.g.:
> sysdeps/ieee754/dbl-64/sincos32.c: __mul(x,x,&x2,p);
> sysdeps/ieee754/dbl-64/mpatan.c: __mul(x,x,&mpsm,p);
> sysdeps/ieee754/dbl-64/mpsqrt.c: __mul(&mpu,&mpu,&mpt1,p);
>
> Could you check whether using __sqr in those - and perhaps other cases
> helps as well?
>
Sure, that was going to be my next step; will post patches for those
soon. Thanks very much for all the reviews :)
Ryan, are the ppc bits OK?
Siddhesh
More information about the Libc-alpha
mailing list