diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2009-05-20 10:32:07 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2009-05-20 10:32:07 +0000 |
commit | 3546f2f6bd6e3073e223008a63d96d6994b2e8e4 (patch) | |
tree | 5a0d4a19ede37108cb2fe4508403a625f082fc9d /tests/mpfr-test.h | |
parent | 0e9174cd8f30c415407ca10feb2610f84a60b63b (diff) | |
download | mpfr-3546f2f6bd6e3073e223008a63d96d6994b2e8e4.tar.gz |
tests/mpfr-test.h: added mpfr_cmp_ui0 macro (check that x is not a NaN).
tests/tfmod.c (bug20090519): check that the results are not NaN's and
replaced GMP_RNDN by MPFR_RNDN.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6231 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/mpfr-test.h')
-rw-r--r-- | tests/mpfr-test.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/mpfr-test.h b/tests/mpfr-test.h index 10a9954d9..356f6be3f 100644 --- a/tests/mpfr-test.h +++ b/tests/mpfr-test.h @@ -94,6 +94,7 @@ int mpfr_cmp_str _MPFR_PROTO ((mpfr_srcptr x, const char *, int, mp_rnd_t)); #define mpfr_set_str1(x,s) mpfr_set_str(x,s,10,MPFR_RNDN) #define mpfr_cmp0(x,y) (MPFR_ASSERTN (!MPFR_IS_NAN (x) && !MPFR_IS_NAN (y)), mpfr_cmp (x,y)) +#define mpfr_cmp_ui0(x,i) (MPFR_ASSERTN (!MPFR_IS_NAN (x)), mpfr_cmp_ui (x,i)) #if defined (__cplusplus) } |