From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24948 invoked by alias); 30 Mar 2012 21:28:58 -0000 Received: (qmail 24935 invoked by uid 22791); 30 Mar 2012 21:28:57 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_CP X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 30 Mar 2012 21:28:45 +0000 From: "ppluzhnikov at google dot com" To: glibc-bugs@sources.redhat.com Subject: [Bug math/13932] New: x86_64 pow unexpectedly slow for some inputs Date: Sat, 31 Mar 2012 02:23:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: math X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ppluzhnikov at google dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org X-SW-Source: 2012-03/txt/msg00417.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=13932 Bug #: 13932 Summary: x86_64 pow unexpectedly slow for some inputs Product: glibc Version: unspecified Status: NEW Severity: normal Priority: P2 Component: math AssignedTo: unassigned@sourceware.org ReportedBy: ppluzhnikov@google.com Classification: Unclassified Created attachment 6310 --> http://sourceware.org/bugzilla/attachment.cgi?id=6310 test case Attached test case shows that pow is over 10,000 slower for some inputs than for other (nearby) inputs. This was first noticed with eglibc-2.11, and reproduced with current git trunk. Results: 32-bit build: ./elf/ld.so --library-path .:math:dlfcn ./a.out pow(0.562500, 1.5): 13.644814 calls/usec pow(0.563250, 1.5): 13.647048 calls/usec ratio: 1 64-bit build: ./elf/ld.so --library-path .:math:dlfcn ./a.out pow(0.562500, 1.5): 0.000982 calls/usec pow(0.563250, 1.5): 13.574397 calls/usec ratio: 13828 perf shows: # Events: 15K cycles # # Overhead Command Shared Object Symbol # ........ ....... ................. ................................... # 63.31% ld.so libm.so [.] __mul 18.44% ld.so libm.so [.] __ieee754_pow_sse2 13.81% ld.so libm.so [.] __exp1 1.20% ld.so libm.so [.] __pow 1.09% ld.so libm.so [.] sub_magnitudes 0.43% ld.so a.out [.] main 0.38% ld.so libm.so [.] __cpy 0.21% ld.so libm.so [.] add_magnitudes 0.19% ld.so libm.so [.] @plt -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.