version 1.1.1.2, 2000/09/09 14:12:57 |
version 1.1.1.3, 2003/08/25 16:06:33 |
|
|
/* mpz_set_d(integer, val) -- Assign INTEGER with a double value VAL. |
/* mpz_set_d(integer, val) -- Assign INTEGER with a double value VAL. |
|
|
Copyright (C) 1995, 1996, 2000 Free Software Foundation, Inc. |
Copyright 1995, 1996, 2000, 2001, 2002 Free Software Foundation, Inc. |
|
|
This file is part of the GNU MP Library. |
This file is part of the GNU MP Library. |
|
|
Line 23 MA 02111-1307, USA. */ |
|
Line 23 MA 02111-1307, USA. */ |
|
#include "gmp-impl.h" |
#include "gmp-impl.h" |
|
|
void |
void |
#if __STDC__ |
|
mpz_set_d (mpz_ptr r, double d) |
mpz_set_d (mpz_ptr r, double d) |
#else |
|
mpz_set_d (r, d) |
|
mpz_ptr r; |
|
double d; |
|
#endif |
|
{ |
{ |
int negative; |
int negative; |
mp_limb_t tp[3]; |
mp_limb_t tp[LIMBS_PER_DOUBLE]; |
mp_ptr rp; |
mp_ptr rp; |
mp_size_t rn; |
mp_size_t rn; |
|
|