=================================================================== RCS file: /home/cvs/OpenXM_contrib/gmp/mpq/Attic/set_d.c,v retrieving revision 1.1.1.1 retrieving revision 1.1.1.2 diff -u -p -r1.1.1.1 -r1.1.1.2 --- OpenXM_contrib/gmp/mpq/Attic/set_d.c 2000/09/09 14:13:06 1.1.1.1 +++ OpenXM_contrib/gmp/mpq/Attic/set_d.c 2003/08/25 16:06:34 1.1.1.2 @@ -1,6 +1,6 @@ /* mpq_set_d(mpq_t q, double d) -- Set q to d without rounding. -Copyright (C) 2000 Free Software Foundation, Inc. +Copyright 2000, 2002 Free Software Foundation, Inc. This file is part of the GNU MP Library. @@ -24,21 +24,15 @@ MA 02111-1307, USA. */ #include "longlong.h" #if BITS_PER_MP_LIMB != 32 && BITS_PER_MP_LIMB != 64 -This file does not handle any the used BITS_PER_MP_LIMB. + choke me #endif void -#if __STDC__ mpq_set_d (mpq_ptr dest, double d) -#else -mpq_set_d (dest, d) - mpq_ptr dest; - double d; -#endif { int negative; mp_exp_t exp; - mp_limb_t tp[3]; + mp_limb_t tp[LIMBS_PER_DOUBLE]; mp_ptr np, dp; mp_size_t nn, dn; int c;