From nobody Tue Oct 26 02:07:01 2021 X-Original-To: standards@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 6C1D3181C12C for ; Tue, 26 Oct 2021 02:07:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HdZvV1pNMz3H4f for ; Tue, 26 Oct 2021 02:07:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id E3E6C14446 for ; Tue, 26 Oct 2021 02:07:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 19Q2716R065657 for ; Tue, 26 Oct 2021 02:07:01 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 19Q271fs065656 for standards@FreeBSD.org; Tue, 26 Oct 2021 02:07:01 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: standards@FreeBSD.org Subject: [Bug 218514] [LIBM] implementations of sinpi[fl], cospi[fl], and tanpi[fl] Date: Tue, 26 Oct 2021 02:07:01 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: standards X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: standards@FreeBSD.org 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: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Standards compliance List-Archive: https://lists.freebsd.org/archives/freebsd-standards List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-standards@freebsd.org X-BeenThere: freebsd-standards@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D218514 --- Comment #21 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3Ddce5f3abed7181cc533ca5ed3de445177= 75e78dd commit dce5f3abed7181cc533ca5ed3de44517775e78dd Author: Steve Kargl AuthorDate: 2021-10-25 13:13:52 +0000 Commit: Konstantin Belousov CommitDate: 2021-10-25 23:50:20 +0000 [LIBM] implementations of sinpi[fl], cospi[fl], and tanpi[fl] Both IEEE-754 2008 and ISO/IEC TS 18661-4 define the half-cycle trignometric functions cospi, sinpi, and tanpi. The attached patch implements cospi[fl], sinpi[fl], and tanpi[fl]. Limited testing on the cospi and sinpi reveal a max ULP less than 0.89; while tanpi is more problematic with a max ULP less than 2.01 in the interval [0,0.5]. The algorithms used in these functions are documented in {ks}_cospi.c, {ks}_sinpi.c, and s_tanpi.c. Note. I no longer have access to a system with ld128 and adequate support to compile and test the ld128 implementations of these functions. Given the almost complete lack of input from others on improvements to libm, I doubt that anyone cares. If someone does care, the ld128 files contain a number of FIXME comments, and in particular, while the polynomial coefficients are given I did not update the polynomial algorithms to properly use the coefficients. PR: 218514 MFC after: 2 weeks lib/msun/Makefile | 14 +++- lib/msun/Symbol.map | 13 +++ lib/msun/ld128/k_cospil.h (new) | 42 ++++++++++ lib/msun/ld128/k_sinpil.h (new) | 42 ++++++++++ lib/msun/ld128/s_cospil.c (new) | 109 +++++++++++++++++++++++++ lib/msun/ld128/s_sinpil.c (new) | 118 +++++++++++++++++++++++++++ lib/msun/ld128/s_tanpil.c (new) | 120 +++++++++++++++++++++++++++ lib/msun/ld80/k_cospil.h (new) | 42 ++++++++++ lib/msun/ld80/k_sinpil.h (new) | 42 ++++++++++ lib/msun/ld80/s_cospil.c (new) | 129 +++++++++++++++++++++++++++++ lib/msun/ld80/s_sinpil.c (new) | 140 ++++++++++++++++++++++++++++++++ lib/msun/ld80/s_tanpil.c (new) | 139 +++++++++++++++++++++++++++++++ lib/msun/man/cospi.3 (new) | 111 +++++++++++++++++++++++++ lib/msun/man/sinpi.3 (new) | 102 +++++++++++++++++++++++ lib/msun/man/tanpi.3 (new) | 106 ++++++++++++++++++++++++ lib/msun/src/k_cospi.h (new) | 44 ++++++++++ lib/msun/src/k_sinpi.h (new) | 43 ++++++++++ lib/msun/src/math.h | 9 ++ lib/msun/src/s_cospi.c (new) | 151 ++++++++++++++++++++++++++++++++++ lib/msun/src/s_cospif.c (new) | 109 +++++++++++++++++++++++++ lib/msun/src/s_sinpi.c (new) | 168 ++++++++++++++++++++++++++++++++++++= ++ lib/msun/src/s_sinpif.c (new) | 122 ++++++++++++++++++++++++++++ lib/msun/src/s_tanpi.c (new) | 176 ++++++++++++++++++++++++++++++++++++= ++++ lib/msun/src/s_tanpif.c (new) | 114 ++++++++++++++++++++++++++ 24 files changed, 2203 insertions(+), 2 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug.=