Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 01 Aug 2023 03:39:51 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 272742] Fixes for bugs in sinpi/cospi/tanpi
Message-ID:  <bug-272742-227-vuF9mDbybN@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-272742-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-272742-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272742

Konstantin Belousov <kib@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|bugs@FreeBSD.org            |kib@FreeBSD.org
                 CC|                            |kib@FreeBSD.org

--- Comment #2 from Konstantin Belousov <kib@FreeBSD.org> ---
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.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-272742-227-vuF9mDbybN>