Import Upstream version 0.8.2
[platform/upstream/mpc.git] / src / set_x.c
index 94ec12d..67db08c 100644 (file)
@@ -1,38 +1,35 @@
-/* mpc_set_x -- Set the real part of a complex number
+/* mpc_set_fr -- Set the real part of a complex number from a real number
    (imaginary part equals +0 regardless of rounding mode).
 
-Copyright (C) 2008, 2009, 2010, 2011 INRIA
+Copyright (C) 2008, 2009 Philippe Th\'eveny, Andreas Enge
 
-This file is part of GNU MPC.
+This file is part of the MPC Library.
 
-GNU MPC is free software; you can redistribute it and/or modify it under
-the terms of the GNU Lesser General Public License as published by the
-Free Software Foundation; either version 3 of the License, or (at your
+The MPC Library is free software; you can redistribute it and/or modify
+it under the terms of the GNU Lesser General Public License as published by
+the Free Software Foundation; either version 2.1 of the License, or (at your
 option) any later version.
 
-GNU MPC is distributed in the hope that it will be useful, but WITHOUT ANY
-WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
-more details.
+The MPC Library is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
+License for more details.
 
 You should have received a copy of the GNU Lesser General Public License
-along with this program. If not, see http://www.gnu.org/licenses/ .
-*/
+along with the MPC Library; see the file COPYING.LIB.  If not, write to
+the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+MA 02111-1307, USA. */
 
 #include "config.h"
 
-#ifdef HAVE_INTTYPES_H
+#if HAVE_INTTYPES_H
 # include <inttypes.h> /* for intmax_t */
 #else
-# ifdef HAVE_STDINT_H
+# if HAVE_STDINT_H
 #  include <stdint.h>
 # endif
 #endif
 
-#ifdef HAVE_COMPLEX_H
-# include <complex.h>
-#endif
-
 #include "mpc-impl.h"
 
 #define MPC_SET_X(real_t, z, real_value, rnd)     \
@@ -85,18 +82,6 @@ mpc_set_sj (mpc_ptr a, intmax_t b, mpc_rnd_t rnd)
    MPC_SET_X (sj, a, b, rnd)
 #endif
 
-#ifdef HAVE_COMPLEX_H
-int
-mpc_set_dc (mpc_ptr a, double _Complex b, mpc_rnd_t rnd) {
-   return mpc_set_d_d (a, creal (b), cimag (b), rnd);
-}
-
-int
-mpc_set_ldc (mpc_ptr a, long double _Complex b, mpc_rnd_t rnd) {
-   return mpc_set_ld_ld (a, creall (b), cimagl (b), rnd);
-}
-#endif
-
 void
 mpc_set_nan (mpc_ptr a) {
    mpfr_set_nan (mpc_realref (a));