projects
/
libc-test
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7fd3b84
)
math: fix long double ulperror calculation
author
Szabolcs Nagy
<nsz@port70.net>
Fri, 14 Dec 2012 17:40:44 +0000
(18:40 +0100)
committer
Szabolcs Nagy
<nsz@port70.net>
Fri, 14 Dec 2012 17:40:44 +0000
(18:40 +0100)
src/math/util.c
patch
|
blob
|
history
diff --git
a/src/math/util.c
b/src/math/util.c
index
f02f5a0
..
a44b5f6
100644
(file)
--- a/
src/math/util.c
+++ b/
src/math/util.c
@@
-87,7
+87,7
@@
float ulperrl(long double got, long double want, float dwant)
got = copysignl(0x1p16383L, got);
want *= 0.5;
}
- return scalbn(got - want, -eulpl(want)) + dwant;
+ return scalbn
l
(got - want, -eulpl(want)) + dwant;
#else
// TODO
return inf;