projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
install-reloc: Support multi-binary installation.
[gnulib.git]
/
tests
/
test-remainderl.c
diff --git
a/tests/test-remainderl.c
b/tests/test-remainderl.c
index
3307d80
..
62876b5
100644
(file)
--- a/
tests/test-remainderl.c
+++ b/
tests/test-remainderl.c
@@
-1,5
+1,5
@@
/* Test of remainderl() function.
/* Test of remainderl() function.
- Copyright (C) 2010-201
2
Free Software Foundation, Inc.
+ Copyright (C) 2010-201
3
Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-23,12
+23,18
@@
#include "signature.h"
SIGNATURE_CHECK (remainderl, long double, (long double, long double));
#include "signature.h"
SIGNATURE_CHECK (remainderl, long double, (long double, long double));
+#include <float.h>
+
#include "fpucw.h"
#include "macros.h"
#include "fpucw.h"
#include "macros.h"
-volatile long double x;
-volatile long double y;
-long double z;
+#define DOUBLE long double
+#define L_(literal) literal##L
+#define MANT_DIG LDBL_MANT_DIG
+#define MAX_EXP LDBL_MAX_EXP
+#define REMAINDER remainderl
+#define RANDOM randoml
+#include "test-remainder.h"
int
main ()
int
main ()
@@
-43,5
+49,7
@@
main ()
z = remainderl (x, y);
ASSERT (z >= -0.178870837L && z <= -0.178870835L);
z = remainderl (x, y);
ASSERT (z >= -0.178870837L && z <= -0.178870835L);
+ test_function ();
+
return 0;
}
return 0;
}