bug report: compoundnf
Paul Zimmermann
Paul.Zimmermann@inria.fr
Fri Aug 22 07:12:17 GMT 2025
Hi,
$ cat test_compoundn_glibc.c
#include <stdio.h>
#include <math.h>
extern float compoundnf (float, unsigned long long);
int main()
{
float x = 0x1.d0004cp-32f;
unsigned long long y = 5263617841566842879ull;
float z = compoundnf (x, y);
printf ("x=%a y=%llu z=%a\n", x, y, z);
}
# with glibc 2.42
$ gcc test_compoundn_glibc.c -lm
$ $BUILD/testrun.sh ./a.out
x=0x1.d0004cp-32 y=5263617841566842879 z=-nan
The expected result is +Inf.
Paul
More information about the Libc-alpha
mailing list