From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25597 invoked by alias); 4 Nov 2012 22:54:49 -0000 Received: (qmail 25575 invoked by uid 48); 4 Nov 2012 22:54:26 -0000 From: "hjl.tools at gmail dot com" To: glibc-bugs@sources.redhat.com Subject: [Bug math/14803] Different ULPs depending on size of long int in GCC Date: Sun, 04 Nov 2012 22:54: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: hjl.tools 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-11/txt/msg00040.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=14803 --- Comment #2 from H.J. Lu 2012-11-04 22:54:25 UTC --- (In reply to comment #1) > But since GCC uses 160 bits internally, getting different results for a > 64-bit mantissa is a bit surprising unless one of the constants is > extremely close to a half-way value. I believe it is the case here. > > /export/build/gnu/glibc-test/build-x86_64-linx/math/test-ildoubl.out > > testing long double (inline functions) > > We can of course also update libm-test-ulps to include these ulps, though Since libm-test-ulps can be auto-generated, we need to collect x86-64 ULPs from both 32-bit long GCC and 64-bit long GCC. > preferably all computed constants in libm sources would be hex float to > make unambiguous exactly what floating-point number is intended. This would be ideal. -- 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.