From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DD5143858C62; Thu, 30 Nov 2023 23:54:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DD5143858C62 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1701388491; bh=6SPCq3UG+dY9HxKpF2w2SBO3erefEuLnMepVzeOENMw=; h=From:To:Subject:Date:From; b=KKbmYFq6lZAl2anPRHa9DpfzmTJ6Uq29eKCQUXIb7QEp2X4jh/CR6mhfqp17QHf04 M33s7OadCAFbf4we8s1aaL3eReucuDi0MSEx0eVTHGE2IUWFsRwmHaCciSRd7u/3Z7 pPGU1DBqC7Ynv8XzhRV4XJGKPMyYgwn44dcgydfU= From: "mwelinder at gmail dot com" To: glibc-bugs@sourceware.org Subject: [Bug math/31104] New: Sign inconsistencies with various log functions Date: Thu, 30 Nov 2023 23:54:51 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: math X-Bugzilla-Version: 2.35 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mwelinder at gmail dot com 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31104 Bug ID: 31104 Summary: Sign inconsistencies with various log functions Product: glibc Version: 2.35 Status: UNCONFIRMED Severity: normal Priority: P2 Component: math Assignee: unassigned at sourceware dot org Reporter: mwelinder at gmail dot com Target Milestone: --- printf ("%+.12g %+.12g %+.12g %+.12g\n", log (-42), log2 (-42), log10 (-42), log1p (-43)); printf ("%+.12g %+.12g %+.12g %+.12g\n", logf (-42), log2f (-42), log10f (-42), log1pf (-43)); printf ("%+.12Lg %+.12Lg %+.12Lg %+.12Lg\n", logl (-42), log2l (-42), log= 10l (-42), log1pl (-43)); gives me... -nan -nan +nan -nan -nan -nan +nan -nan +nan +nan +nan -nan That's just all over the place! That sign inconsistency seems silly, even if the standards might allow it. GNU C Library (Ubuntu GLIBC 2.35-0ubuntu3.4) stable release version 2.35. --=20 You are receiving this mail because: You are on the CC list for the bug.=