projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Correct name of POSIX.1-2001.
[gnulib.git]
/
tests
/
test-sqrtf.c
diff --git
a/tests/test-sqrtf.c
b/tests/test-sqrtf.c
index
514eb7e
..
40abde6
100644
(file)
--- a/
tests/test-sqrtf.c
+++ b/
tests/test-sqrtf.c
@@
-23,10
+23,16
@@
#include "signature.h"
SIGNATURE_CHECK (sqrtf, float, (float));
#include "signature.h"
SIGNATURE_CHECK (sqrtf, float, (float));
+#include <float.h>
+
#include "macros.h"
#include "macros.h"
-volatile float x;
-float y;
+#define DOUBLE float
+#define L_(literal) literal##f
+#define MANT_DIG FLT_MANT_DIG
+#define SQRT sqrtf
+#define RANDOM randomf
+#include "test-sqrt.h"
int
main ()
int
main ()
@@
-36,5
+42,7
@@
main ()
y = sqrtf (x);
ASSERT (y >= 0.7745966f && y <= 0.7745967f);
y = sqrtf (x);
ASSERT (y >= 0.7745966f && y <= 0.7745967f);
+ test_function ();
+
return 0;
}
return 0;
}