diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2009-10-07 23:40:25 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2009-10-07 23:40:25 +0000 |
commit | 2d5a82c1df296140d489f6afa339c902a6c718c4 (patch) | |
tree | fa1bac86a15cf8f719340fe4e29e8c7ca6806f98 /gcc/fortran/arith.c | |
parent | 4bedf19ae7da1329ab77ef1cb275be476748f3fd (diff) | |
download | gcc-2d5a82c1df296140d489f6afa339c902a6c718c4.zip gcc-2d5a82c1df296140d489f6afa339c902a6c718c4.tar.gz gcc-2d5a82c1df296140d489f6afa339c902a6c718c4.tar.bz2 |
arith.c (arith_power): Use mpc_pow_z.
* arith.c (arith_power): Use mpc_pow_z.
* gfortran.h (HAVE_mpc_pow_z): Define.
From-SVN: r152544
Diffstat (limited to 'gcc/fortran/arith.c')
-rw-r--r-- | gcc/fortran/arith.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/fortran/arith.c b/gcc/fortran/arith.c index dddf7e0..82a43ad 100644 --- a/gcc/fortran/arith.c +++ b/gcc/fortran/arith.c @@ -1111,7 +1111,10 @@ arith_power (gfc_expr *op1, gfc_expr *op2, gfc_expr **resultp) case BT_COMPLEX: { -#ifdef HAVE_mpc_pow +#ifdef HAVE_mpc_pow_z + mpc_pow_z (result->value.complex, op1->value.complex, + op2->value.integer, GFC_MPC_RND_MODE); +#elif defined(HAVE_mpc_pow) mpc_t apower; gfc_set_model (mpc_realref (op1->value.complex)); mpc_init2 (apower, mpfr_get_default_prec()); |