projects
/
libc-test
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
math: use separate makefile
[libc-test]
/
src
/
math
/
tan.c
diff --git
a/src/math/tan.c
b/src/math/tan.c
index
0b457a6
..
1751e6d
100644
(file)
--- a/
src/math/tan.c
+++ b/
src/math/tan.c
@@
-3,10
+3,10
@@
#include "util.h"
static struct d_d t[] = {
#include "util.h"
static struct d_d t[] = {
-
#include "crlibm/tan.h"
#include "ucb/tan.h"
#include "sanity/tan.h"
#include "crlibm/tan.h"
#include "ucb/tan.h"
#include "sanity/tan.h"
+
};
int main(void)
};
int main(void)
@@
-22,14
+22,15
@@
int main(void)
y = tan(p->x);
e = getexcept();
if (!checkexcept(e, p->e, p->r)) {
y = tan(p->x);
e = getexcept();
if (!checkexcept(e, p->e, p->r)) {
- printf("%s tan(%a)==%a except: want %s", rstr(p->r), p->x, p->y, estr(p->e));
+ printf("%s:%d: bad fp exception: %s tan(%a)=%a, want %s",
+ p->file, p->line, rstr(p->r), p->x, p->y, estr(p->e));
printf(" got %s\n", estr(e));
err++;
}
d = ulperr(y, p->y, p->dy);
if (!checkulp(d, p->r)) {
printf(" got %s\n", estr(e));
err++;
}
d = ulperr(y, p->y, p->dy);
if (!checkulp(d, p->r)) {
- printf("%s tan(%a) want %a got %a ulperr %.3f = %a + %a\n",
- rstr(p->r), p->x, p->y, y, d, d-p->dy, p->dy);
+ printf("%s
:%d: %s
tan(%a) want %a got %a ulperr %.3f = %a + %a\n",
+
p->file, p->line,
rstr(p->r), p->x, p->y, y, d, d-p->dy, p->dy);
err++;
}
}
err++;
}
}