This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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] Don't depend on LIM to determine loop end in __sqr


On 02/14/2013 12:26 PM, Siddhesh Poyarekar wrote:
Hi,

This is yet another micro-optimization to the __sqr loop termination.
If we check the termination condition of the inner mantissa
calculation loop as the subscripts of X and Y crossing over, we don't
need the extra operations in LIM.  This gives a roughly 2% improvement
in pow() in the worst case (768 bits).  Built and tested on x86_64.
Will work on ppc changes separately.  OK to commit?

Yes,


Andreas
--
 Andreas Jaeger aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi
  SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
   GF: Jeff Hawn,Jennifer Guild,Felix Imendörffer,HRB16746 (AG Nürnberg)
    GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126


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