diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2014-08-17 10:46:16 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2014-08-17 10:46:16 +0000 |
commit | ef040149f90703da7a7d62eecb217100f1860199 (patch) | |
tree | c77fbd31a717ec00f48305cd7730d8b4e649981d /src | |
parent | 2961295e9943cd13991168920edfd640b226b094 (diff) | |
download | mpfr-ef040149f90703da7a7d62eecb217100f1860199.tar.gz |
[src/mpfr.h] Fixed the mpfr_signbit() macro, which depended on
mpfr-impl.h (the problem wasn't detected in the tests since mpfr-impl.h
is included in them). Thanks to Rob for the bug report.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9177 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src')
-rw-r--r-- | src/mpfr.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mpfr.h b/src/mpfr.h index a5634051f..913d63bdb 100644 --- a/src/mpfr.h +++ b/src/mpfr.h @@ -866,7 +866,7 @@ __MPFR_DECLSPEC int mpfr_custom_get_kind _MPFR_PROTO ((mpfr_srcptr)); #define mpfr_abs(a,b,r) mpfr_set4(a,b,r,1) #define mpfr_copysign(a,b,c,r) mpfr_set4(a,b,r,MPFR_SIGN(c)) #define mpfr_setsign(a,b,s,r) mpfr_set4(a,b,r,(s) ? -1 : 1) -#define mpfr_signbit(x) (MPFR_IS_NEG (x)) +#define mpfr_signbit(x) (MPFR_SIGN(x) < 0) #define mpfr_cmp(b, c) mpfr_cmp3(b, c, 1) #define mpfr_mul_2exp(y,x,n,r) mpfr_mul_2ui((y),(x),(n),(r)) #define mpfr_div_2exp(y,x,n,r) mpfr_div_2ui((y),(x),(n),(r)) |