This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/13824] exp2l(small_integer) produces rounding errors
- From: "bruno at clisp dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Sun, 11 Mar 2012 14:41:23 +0000
- Subject: [Bug math/13824] exp2l(small_integer) produces rounding errors
- Auto-submitted: auto-generated
- References: <bug-13824-131@http.sourceware.org/bugzilla/>
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.