From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30097 invoked by alias); 16 Aug 2012 08:12:05 -0000 Received: (qmail 30041 invoked by uid 22791); 16 Aug 2012 08:12:02 -0000 X-SWARE-Spam-Status: No, hits=-3.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KHOP_THREADED X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 16 Aug 2012 08:11:49 +0000 From: "liubov.dmitrieva at gmail dot com" To: glibc-bugs@sources.redhat.com Subject: [Bug math/14470] Inaccurate j1f function on x86_32 and x86_64 Date: Thu, 16 Aug 2012 08:12:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: math X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: liubov.dmitrieva at gmail 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: In-Reply-To: References: 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-08/txt/msg00093.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=14470 --- Comment #2 from Liubov Dmitrieva 2012-08-16 08:11:45 UTC --- represent the test argument using a hex float value, test case update: #include #include #include extern float j1f(float); extern double j1(double); int main() { float a,r1; double r2; a=0x1.458d14p3; //argument fesetround(FE_TONEAREST); r1 = j1f(a); //actual result r2 = j1(a); //actual result 2 printf("inputs: a = %.6a\n", a); printf("actual = %.6a\n", r1); printf("expected = %.6a\n", r2); printf("error = %f ulp\n", fabs(r1 - r2) * exp2(23.0-logbf(r1))); return 0; } Result x86: inputs: a = 0x1.458d14p+3 actual = -0x1.bc9adap-21 expected = -0x1.bc818dp-21 error = 3238.561446 ulp Result x86_64: inputs: a = 0x1.458d14p+3 actual = -0x1.bc55a6p-21 expected = -0x1.bc818dp-21 error = 5619.438563 ulp -- 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.