From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 252C53858D3C; Sun, 14 Nov 2021 05:38:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 252C53858D3C From: "newbie-02 at gmx dot de" To: glibc-bugs@sourceware.org Subject: [Bug math/28472] pow(10, i) accuracy Date: Sun, 14 Nov 2021 05:38: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-Version: 2.31 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: newbie-02 at gmx dot de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: glibc-bugs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-bugs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Nov 2021 05:38:01 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28472 --- Comment #5 from b. --- if ... I'm right in testing ... Intel 'oneAPI' compiler(s) 'icpx' and 'dpcp= p' produce clean powers of 10 ( matching E-string evaluation ) for long double figures with 'exp10l( x )'.=20=20 since they do not compile themselves but use clang/clang++ for this purpose= - with a huge bunch of options and includes - it should be possible to have a look at it and gather some inspiration ... ??? hot spots seem to be calling clang with '-cc1' and '-x c++'.=20=20 ( for the bug itself i propose testing and setting to new, besides the deviation it is a consistency problem which is difficult to explain to user= s: that one get's different results in one system for different formulations of the same mathematical task. ('pow( 10, x )' !=3D '1Ex' !=3D 'pow10( x )' != =3D 'exp10( x )' ).=20=20 ( and of course gcc shouldn't be second in 'best compilers' )=20 reg. the proposal of using exp10( x ) instead of pow( 10, x ):=20=20 'exp10( x )' compiled with gcc -O2: 230 fails between x =3D -324 and x =3D = 308,=20 'pow( 10, x )': only 2,=20 as well with 'exp10( x )'=20 ( complaining " incompatible implicit declaration of built-in function =E2= =80=98exp10=E2=80=99 " )=20 as for '__builtin_exp10( x )'.=20=20 as well for gcc, g++, clang++,=20 'clang' additional complaints and producing even more fails. --=20 You are receiving this mail because: You are on the CC list for the bug.=