projects
/
libc-test
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix broken fma tests (due to mpfr bugs)
[libc-test]
/
src
/
math
/
util.h
diff --git
a/src/math/util.h
b/src/math/util.h
index
875203b
..
d84b0e3
100644
(file)
--- a/
src/math/util.h
+++ b/
src/math/util.h
@@
-116,3
+116,10
@@
static int checkulp(float d, int r)
return 1;
}
return 1;
}
+static int checkcr(long double y, long double ywant, int r)
+{
+ if (isnan(ywant))
+ return isnan(y);
+ return y == ywant;
+}
+