projects
/
platform
/
upstream
/
libffi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ede96e4
)
use the absolute value to check the test result against an epsilon
author
David Schneider
<david.schneider@bivab.de>
Mon, 25 Mar 2013 12:26:02 +0000
(13:26 +0100)
committer
David Schneider
<david.schneider@bivab.de>
Thu, 28 Mar 2013 15:37:58 +0000
(16:37 +0100)
testsuite/libffi.call/many.c
patch
|
blob
|
history
diff --git
a/testsuite/libffi.call/many.c
b/testsuite/libffi.call/many.c
index
4869ba9
..
67a367f
100644
(file)
--- a/
testsuite/libffi.call/many.c
+++ b/
testsuite/libffi.call/many.c
@@
-7,7
+7,9
@@
/* { dg-do run } */
#include "ffitest.h"
+#include <stdlib.h>
#include <float.h>
+#include <math.h>
static float many(float f1,
float f2,
@@
-62,7
+64,7
@@
int main (void)
fa[8], fa[9],
fa[10],fa[11],fa[12]);
- if (f
- ff
< FLT_EPSILON)
+ if (f
abs(f - ff)
< FLT_EPSILON)
exit(0);
else
abort();