[Bug math/13824] exp2l(small_integer) produces rounding errors
bruno at clisp dot org
sourceware-bugzilla@sourceware.org
Sun Mar 11 14:41:00 GMT 2012
http://sourceware.org/bugzilla/show_bug.cgi?id=13824
--- Comment #3 from Bruno Haible <bruno at clisp dot org> 2012-03-11 14:41:23 UTC ---
The bug is also seen on Linux/PowerPC:
====================== foo.c =================
#define _GNU_SOURCE 1
#include <math.h>
#include <stdio.h>
long double x = 3.0L;
int main ()
{
long double y = exp2l (x);
printf ("y = %LA, y - 8 = %LA\n", y, y - 8.0L);
return 0;
}
==============================================
$ gcc -m32 -Wall foo.c -lm
$ ./a.out
y = 0X1.0000000000000000000000000027P+3, y - 8 = 0X1.38DF91E931B46P-104
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list