diff options
author | enge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4> | 2009-08-20 17:37:38 +0000 |
---|---|---|
committer | enge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4> | 2009-08-20 17:37:38 +0000 |
commit | 73998d0d8a5777463061bde77cdaa4887f55d429 (patch) | |
tree | 98d589706381195fa805d008d8f34c958e299c4d /src/proj.c | |
parent | 16566412868ceea926c54c3346021788e90d7b73 (diff) | |
download | mpc-73998d0d8a5777463061bde77cdaa4887f55d429.tar.gz |
mpc-impl.h: renamed MPC_IS_INF to mpc_inf_p and MPC_IS_ZERO to mpc_zero_p
added mpc_fin_p and mpc_nan_p
mul.c, proj.c: used renamed macroes
git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@652 211d60ee-9f03-0410-a15a-8952a2c7a4e4
Diffstat (limited to 'src/proj.c')
-rw-r--r-- | src/proj.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1,6 +1,7 @@ /* mpc_proj -- projection of a complex number onto the Riemann sphere. Copyright (C) 2008, 2009 Philippe Th\'eveny + 2009 Andreas Enge This file is part of the MPC Library. @@ -24,7 +25,7 @@ MA 02111-1307, USA. */ int mpc_proj (mpc_ptr a, mpc_srcptr b, mpc_rnd_t rnd) { - if (MPC_IS_INF (b)) + if (mpc_inf_p (b)) { /* infinities projects to +Inf +i* copysign(0.0, cimag(z)) */ int inex; @@ -37,8 +38,8 @@ mpc_proj (mpc_ptr a, mpc_srcptr b, mpc_rnd_t rnd) inex = -inex; } - return MPC_INEX (0, inex); - } + return MPC_INEX (0, inex); + } else return mpc_set (a, b, rnd); } |