From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17773 invoked by alias); 15 Apr 2008 01:51:51 -0000 Received: (qmail 16242 invoked by uid 48); 15 Apr 2008 01:51:06 -0000 Date: Tue, 15 Apr 2008 01:51:00 -0000 From: "sjmunroe at us dot ibm dot com" To: glibc-bugs@sources.redhat.com Message-ID: <20080415015106.6406.sjmunroe@us.ibm.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug math/6406] New: Improve performance of libm wrapper functions. X-Bugzilla-Reason: CC 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: 2008-04/txt/msg00090.txt.bz2 Many math lib functions have a wrapper function in front of the ieee754 implementation. This wrapper function will check for specific error conditions and set errno as required by C99 or Posix. This wrapper function can add significant path length and is composed of often redundant isnan, isinf, finite tests which is incur the call overhead to that function. Also since we are using the general purpose functions, the same value is transfered and manipulated in the same or similar ways multiple times. Performance could be improved by making these tests inline, allowing the compiler and optimize out data transfers and common subexpressions. -- Summary: Improve performance of libm wrapper functions. Product: glibc Version: unspecified Status: NEW Severity: normal Priority: P2 Component: math AssignedTo: aj at suse dot de ReportedBy: sjmunroe at us dot ibm dot com CC: glibc-bugs at sources dot redhat dot com GCC target triplet: powerpc64-*-linux and others http://sourceware.org/bugzilla/show_bug.cgi?id=6406 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.