projects
/
libc-test
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
e32c6c4
)
fix ulp check in sincosf
author
Szabolcs Nagy
<nsz@port70.net>
Fri, 10 Apr 2015 18:45:16 +0000
(18:45 +0000)
committer
Szabolcs Nagy
<nsz@port70.net>
Fri, 10 Apr 2015 18:45:16 +0000
(18:45 +0000)
src/math/sincosf.c
patch
|
blob
|
history
diff --git
a/src/math/sincosf.c
b/src/math/sincosf.c
index
94e3654
..
f8df662
100644
(file)
--- a/
src/math/sincosf.c
+++ b/
src/math/sincosf.c
@@
-32,8
+32,8
@@
int main(void)
printf(" got %s\n", estr(e));
err++;
}
- dsin = ulperr(ysin, p->y, p->dy);
- dcos = ulperr(ycos, p->y2, p->dy2);
+ dsin = ulperr
f
(ysin, p->y, p->dy);
+ dcos = ulperr
f
(ycos, p->y2, p->dy2);
if (!checkulp(dsin, p->r) || !checkulp(dcos, p->r)) {
printf("%s:%d: %s sincosf(%a) want %a,%a got %a,%a, ulperr %.3f = %a + %a, %.3f = %a + %a\n",
p->file, p->line, rstr(p->r), p->x, p->y, p->y2, ysin, ycos,