diff options
author | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2004-02-25 10:57:16 +0000 |
---|---|---|
committer | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2004-02-25 10:57:16 +0000 |
commit | b68f58c2b0296e05803f657eccf7f75b54da2f08 (patch) | |
tree | 253574825351c49cd8d119351a391e05b3f24bcd /sgn.c | |
parent | 8dd0bbfd0dc2fee95d214c962d013d97de22d084 (diff) | |
download | mpfr-b68f58c2b0296e05803f657eccf7f75b54da2f08.tar.gz |
Simplify the code.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2811 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'sgn.c')
-rw-r--r-- | sgn.c | 12 |
1 files changed, 4 insertions, 8 deletions
@@ -26,12 +26,8 @@ int mpfr_sgn (mpfr_srcptr a) { if (MPFR_UNLIKELY( MPFR_IS_SINGULAR(a) )) - { - /* Only infinite is signed */ - if (MPFR_IS_INF(a)) - return MPFR_INT_SIGN(a); - else - return 0; - } - return MPFR_INT_SIGN(a); + /* Only infinite is signed */ + return MPFR_IS_INF (a) ? MPFR_INT_SIGN (a) : 0; + else + return MPFR_INT_SIGN (a); } |