This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug math/18647] powf(-0x1.000002p0, 0x1p30) returns 0 instead of +inf


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]