public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [patch] pow.3: Add note on performance characteristics of pow
@ 2014-10-16 23:52 Manuel López-Ibáñez
  2014-10-17  5:24 ` Michael Kerrisk (man-pages)
  0 siblings, 1 reply; 6+ messages in thread
From: Manuel López-Ibáñez @ 2014-10-16 23:52 UTC (permalink / raw)
  To: mtk.manpages, linux-man; +Cc: GNU C Library

[-- Attachment #1: Type: text/plain, Size: 546 bytes --]

Hello,

This patch documents
https://sourceware.org/bugzilla/show_bug.cgi?id=13932 as requested in
https://sourceware.org/bugzilla/show_bug.cgi?id=15267. It would be
nice to add more details, but it seems the behavior and its
consequences is not well understood. The purpose of the note is to
warn users of this behavior and thus avoid frustration
(http://entropymine.com/imageworsener/slowpow/).

This is my first patch. I followed (hopefully correctly) the instructions here:
https://www.kernel.org/doc/man-pages/patches.html

Cheers,

Manuel.

[-- Attachment #2: pow.diff --]
[-- Type: text/plain, Size: 562 bytes --]

diff --git a/man3/pow.3 b/man3/pow.3
index d0a2ea8..3d2151a 100644
--- a/man3/pow.3
+++ b/man3/pow.3
@@ -320,6 +320,17 @@ 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 inputs than for other nearby
+inputs. The inputs that produce such behavior are different for
+.BR powf (),
+.BR pow ()
+and
+.BR powl ().
+
 In glibc 2.9 and earlier,
 .\"
 .\" http://sources.redhat.com/bugzilla/show_bug.cgi?id=6776

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-11-11 12:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-16 23:52 [patch] pow.3: Add note on performance characteristics of pow Manuel López-Ibáñez
2014-10-17  5:24 ` Michael Kerrisk (man-pages)
2014-10-17  7:58   ` Siddhesh Poyarekar
2014-10-17 13:51     ` Manuel López-Ibáñez
2014-10-30 23:30       ` Manuel López-Ibáñez
2014-11-11 12:58       ` Michael Kerrisk (man-pages)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).