|
|
Message-Id: <mweehvose2.fsf@tomate.loria.fr>
Date: Fri, 05 Feb 2021 09:01:09 +0100
From: Paul Zimmermann <Paul.Zimmermann@...ia.fr>
To: musl@...ts.openwall.com
Subject: issue with sinhf
Hi,
a similar issue happens with sinhf:
$ 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);
}
With GNU libc:
$ gcc -fno-builtin test_sinh_musl.c -lm
$ ./a.out
x=0x1.62e4p+6 y=0x1.ffe808p+126
With musl-1.2.2:
$ gcc -fno-builtin test_sinh_musl.c $FILES
$ ./a.out
x=0x1.62e4p+6 y=-nan
Here we get NaN whereas the result is perfectly valid.
Best regards,
Paul
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.