This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/18647] powf(-0x1.000002p0, 0x1p30) returns 0 instead of +inf
- From: "dhekir at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Fri, 17 Jul 2015 08:07:39 +0000
- Subject: [Bug math/18647] powf(-0x1.000002p0, 0x1p30) returns 0 instead of +inf
- Auto-submitted: auto-generated
- References: <bug-18647-131 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=18647
--- Comment #2 from dhekir at gmail dot com ---
Also, it only occurs with the 64-bit version of the library. For instance, the
following program prints "f = 0|0" when compiled with `gcc t.c -lm` but "f =
inf|inf" when compiled with `gcc -m32 t.c -lm`:
```
#include <stdio.h>
#include <math.h>
int main() {
float f = powf(-0x1.000002p0, 0x1p30);
printf("f = %g|%a\n", f, f);
return 0;
}
```
--
You are receiving this mail because:
You are on the CC list for the bug.