Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Fri, 5 Feb 2021 21:12:29 +0100
From: Szabolcs Nagy <nsz@...t70.net>
To: Paul Zimmermann <Paul.Zimmermann@...ia.fr>, musl@...ts.openwall.com
Subject: Re: issue with sinhf

* Szabolcs Nagy <nsz@...t70.net> [2021-02-05 21:09:34 +0100]:

> * Paul Zimmermann <Paul.Zimmermann@...ia.fr> [2021-02-05 09:01:09 +0100]:
> > $ cat test_sinh_musl.c
> > #include <stdio.h>
> > #include <stdlib.h>
> > #include <math.h>
> > 
> > int
> > main ()
> > {
> >   float x = 0x1.62e4p+6;
> >   float y = sinhf (x);
> >   printf ("x=%a y=%a\n", x, y);
> > }
> ...
> > $ gcc -fno-builtin test_sinh_musl.c $FILES
> > $ ./a.out
> > x=0x1.62e4p+6 y=-nan
> 
> this seems to be a bug, attaching a fix

that one was for the acoshf bug, the sinhf issue was a bug
in expm1f (overflowed too early, although sinhf could have
used a less tight threshold that would have prevented this
causing an issue there)


View attachment "0001-math-fix-expm1f-overflow-threshold.patch" of type "text/x-diff" (1128 bytes)

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.