This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/11451] New: atan2 leaves overflow bit set in status register
- From: "geoff at dyalog dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 30 Mar 2010 14:48:14 -0000
- Subject: [Bug math/11451] New: atan2 leaves overflow bit set in status register
- Reply-to: sourceware-bugzilla at sourceware dot org
eglibc-2.10.1/sysdeps/ieee754/dbl-64
e_tan2.c line: 406 calls
EMULV in dla.h which overflows
test case
#include <stdio.h>
#include <math.h>
#include <float.h>
#include <fenv.h>
double call_atan2(double x, double y)
{
volatile double a = x;
volatile double b = y;
volatile double r = atan2(x, y);
return r;
}
int main(void)
{
double piby4 = call_atan2(DBL_MAX, DBL_MAX);
fexcept_t fe = fetestexcept(FE_OVERFLOW);
char *word = fe ? "overflowed" : "";
printf("atan2(%e, %e) => %e %s\n", DBL_MAX, DBL_MAX, piby4, word);
return 0;
}
--
Summary: atan2 leaves overflow bit set in status register
Product: glibc
Version: 2.10
Status: NEW
Severity: normal
Priority: P2
Component: math
AssignedTo: aj at suse dot de
ReportedBy: geoff at dyalog dot com
CC: glibc-bugs at sources dot redhat dot com
GCC build triplet: x86_64-linux-gnu
GCC host triplet: x86_64-linux-gnu
GCC target triplet: x86_64-linux-gnu
http://sourceware.org/bugzilla/show_bug.cgi?id=11451
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.