From nobody Tue Aug 1 03:39:51 2023 X-Original-To: bugs@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 4RFLTw0Hf4z4pkyT for ; Tue, 1 Aug 2023 03:39:54 +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 4RFLTM5Fcvz4FWW for ; Tue, 1 Aug 2023 03:39:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1690861192; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qtHkMHPDf4p3byPvWeVXKasgQTrlAbHZYPk7FY/2J5s=; b=bz9Ulv1UstTuEqwemh7nqE4m9XdQabCzaEghMJCPflxsiQcBr4Y3iMNuT/NaDOE+2i0Ca/ 23fBYmxsHBnXiuAbDxaqIQ2yXuDSnlXEu067NtJQw44h1zrOU1jyINnI+iweUANo5gmliA bLnnCFmRd6FV8/Ed29GjUGYZozLG4Qs12H8f8E1EdgMLV8kDVf6JIWDJtRZhE0E61XxUZ+ vP9FUz1pAYLtcplfdRvVypNaHJh6HEtNa32maj2M7FPJNg495GlVyZq+IA3cUIAF/9mnkJ 8SO4KzvS/JRrLJHogouY28x/vzOWH0XxmLrqxp5+hzIc/MURLzX6bdafnbyBTw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1690861192; a=rsa-sha256; cv=none; b=AeZOGE34EPZmuSFZjAcb0e0VJz44IMocpYvW3IqOX214xa02DvW+E7XIi7eFhSx/3UquKi NQDSqoR40siPjOvUw+NpyCmAeUDTkpyqrrk42yHSvkzr0t15GsuPIRMnJPRn8kO1DUAdBS x7DyDqu9famSzC40kH9+zgVIvt+aqH9nFWV9EmOlyiQ+PSX55K7gkXKzLtRA8y/AXI4HV9 FMc12XtNGIBfe29v6QWJEYrZRjO78ExkOmEkhvu04cOnK+9ts1BMcOtyuLDFty+Uio/c2v n0qeebLkaTymQ4tE6haJYn2Bg/eAloT2Vqj1mscqqTvQaj6WuIvBTFQLgc/IAw== 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 4RFLTM17CLzMRx for ; Tue, 1 Aug 2023 03:39:51 +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 3713doA9061950 for ; Tue, 1 Aug 2023 03:39:50 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3713doVV061949 for bugs@FreeBSD.org; Tue, 1 Aug 2023 03:39:50 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 272742] Fixes for bugs in sinpi/cospi/tanpi Date: Tue, 01 Aug 2023 03:39:51 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: kib@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: kib@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: assigned_to cc 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: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272742 Konstantin Belousov changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|bugs@FreeBSD.org |kib@FreeBSD.org CC| |kib@FreeBSD.org --- Comment #2 from Konstantin Belousov --- The following change is required for ld128 platforms to build: diff --git a/lib/msun/ld128/s_tanpil.c b/lib/msun/ld128/s_tanpil.c index b9ec3ef50f80..52003d0bf6c5 100644 --- a/lib/msun/ld128/s_tanpil.c +++ b/lib/msun/ld128/s_tanpil.c @@ -28,6 +28,7 @@ * See ../src/s_tanpi.c for implementation details. */ +#include "fpmath.h" #include "math.h" #include "math_private.h" @@ -71,6 +72,8 @@ tanpil(long double x) { long double ax, hi, lo, odd, t, xf; uint32_t ix; + uint64_t lx, llx; + int16_t hx; ax =3D fabsl(x); @@ -112,6 +115,8 @@ tanpil(long double x) if (isinf(x) || isnan(x)) return (vzero / vzero); + EXTRACT_LDBL128_WORDS(hx, lx, llx, x); + /* * For 0x1p112 <=3D |x| < 0x1p113 need to determine if x is an even * or odd integer to set t =3D +0 or -0. If you are fine with it, I will push both this PR patch, and PR 272765. --=20 You are receiving this mail because: You are the assignee for the bug.=