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/13824] exp2l(small_integer) produces rounding errors


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.


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