Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Nov 2020 02:05:09 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 251091] lib msun remainder() gives incorrect result on powerpc64
Message-ID:  <bug-251091-227@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 251091
           Summary: lib msun remainder() gives incorrect result on
                    powerpc64
           Product: Base System
           Version: CURRENT
          Hardware: powerpc
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: misc
          Assignee: bugs@FreeBSD.org
          Reporter: alfredo@freebsd.org

lib msun remainder() function gives incorrect result on powerpc64, as repor=
ted
by rem_test.c.
Expected result is 4.9406564584124654e-324, but -4.9406564584124654e-324 is
given.

Reduced test case:

#include <openlibm.h>
#include <assert.h>


int main()=20
{
        double x=3D-3.3770170061145426e-226;
        double y=3D2.4703282292062327e-323;
        double expected_rem =3D 4.9406564584124654e-324;

        double rem;

        rem =3D remainder(x, y);

        assert(rem =3D=3D expected_rem);

        return(0);
}

* compile with "cc rem.c  -lm"

--=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-251091-227>