projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gettimeofday: port recent C++ fix to Emacs
[gnulib.git]
/
tests
/
test-expl.c
diff --git
a/tests/test-expl.c
b/tests/test-expl.c
index
fe671c8
..
0968968
100644
(file)
--- a/
tests/test-expl.c
+++ b/
tests/test-expl.c
@@
-1,5
+1,5
@@
/* Test of expl() function.
/* Test of expl() function.
- Copyright (C) 2010 Free Software Foundation, Inc.
+ Copyright (C) 2010
-2013
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,10
+23,17
@@
#include "signature.h"
SIGNATURE_CHECK (expl, long double, (long double));
#include "signature.h"
SIGNATURE_CHECK (expl, long double, (long double));
+#include <float.h>
+
#include "fpucw.h"
#include "macros.h"
#include "fpucw.h"
#include "macros.h"
-long double y;
+#define DOUBLE long double
+#define L_(literal) literal##L
+#define MANT_DIG LDBL_MANT_DIG
+#define EXP expl
+#define RANDOM randoml
+#include "test-exp.h"
int
main ()
int
main ()
@@
-36,8
+43,11
@@
main ()
BEGIN_LONG_DOUBLE_ROUNDING ();
/* A particular value. */
BEGIN_LONG_DOUBLE_ROUNDING ();
/* A particular value. */
- y = expl (0.6L);
+ x = 0.6L;
+ y = expl (x);
ASSERT (y >= 1.822118800L && y <= 1.822118801L);
ASSERT (y >= 1.822118800L && y <= 1.822118801L);
+ test_function ();
+
return 0;
}
return 0;
}