From patchwork Fri Oct 17 13:51:06 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?TWFudWVsIEzDs3Blei1JYsOhw7Fleg==?= X-Patchwork-Id: 3265 Received: (qmail 31476 invoked by alias); 17 Oct 2014 13:51:32 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 31465 invoked by uid 89); 17 Oct 2014 13:51:31 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wi0-f179.google.com X-Received: by 10.180.212.81 with SMTP id ni17mr28990747wic.41.1413553886910; Fri, 17 Oct 2014 06:51:26 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20141017075845.GL1552@spoyarek.pnq.redhat.com> References: <5440A816.8000002@gmail.com> <20141017075845.GL1552@spoyarek.pnq.redhat.com> From: =?ISO-8859-1?Q?Manuel_L=F3pez=2DIb=E1=F1ez?= Date: Fri, 17 Oct 2014 15:51:06 +0200 Message-ID: Subject: Re: [patch] pow.3: Add note on performance characteristics of pow To: Siddhesh Poyarekar Cc: "Michael Kerrisk (man-pages)" , linux-man@vger.kernel.org, GNU C Library On 17 October 2014 09:58, Siddhesh Poyarekar wrote: >> > +inputs. The inputs that produce such behavior are different for >> > +.BR powf (), >> > +.BR pow () >> > +and >> > +.BR powl (). >> > + > > The slow fallback is only taken for pow, not powf or powl. Updated patch inline: .\" http://sources.redhat.com/bugzilla/show_bug.cgi?id=6776 and attached in case gmail messes it up. Cheers, Manuel. diff --git a/man3/pow.3 b/man3/pow.3 index d0a2ea8..1b05292 100644 --- a/man3/pow.3 +++ b/man3/pow.3 @@ -320,6 +320,18 @@ The variant returning also conforms to SVr4, 4.3BSD, C89. .SH BUGS +On 64-bits, +.\" +.\" https://sourceware.org/bugzilla/show_bug.cgi?id=13932 +.BR pow () +may be more than 10,000 times slower for some (rare) inputs than for other nearby +inputs. This only affects +.BR pow (), +and not +.BR powf () +nor +.BR powl (). + In glibc 2.9 and earlier, .\" .\" http://sources.redhat.com/bugzilla/show_bug.cgi?id=6776 diff --git a/man3/pow.3 b/man3/pow.3 index d0a2ea8..1b05292 100644 --- a/man3/pow.3 +++ b/man3/pow.3 @@ -320,6 +320,18 @@ The variant returning also conforms to SVr4, 4.3BSD, C89. .SH BUGS +On 64-bits, +.\" +.\" https://sourceware.org/bugzilla/show_bug.cgi?id=13932 +.BR pow () +may be more than 10,000 times slower for some (rare) inputs than for other nearby +inputs. This only affects +.BR pow (), +and not +.BR powf () +nor +.BR powl (). + In glibc 2.9 and earlier, .\"