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
/
j0f.c
diff --git
a/src/math/j0f.c
b/src/math/j0f.c
index
63dea2d
..
94a213c
100644
(file)
--- a/
src/math/j0f.c
+++ b/
src/math/j0f.c
@@
-20,14
+20,15
@@
int main(void)
y = j0f(p->x);
e = getexcept();
if (!checkexcept(e, p->e, p->r)) {
y = j0f(p->x);
e = getexcept();
if (!checkexcept(e, p->e, p->r)) {
- printf("%s j0f(%a)==%a except: want %s", rstr(p->r), p->x, p->y, estr(p->e));
+ printf("%s:%d: bad fp exception: %s j0f(%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 = ulperrf(y, p->y, p->dy);
if (!checkulp(d, p->r)) {
printf(" got %s\n", estr(e));
err++;
}
d = ulperrf(y, p->y, p->dy);
if (!checkulp(d, p->r)) {
- printf("%s j0f(%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
j0f(%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++;
}
}