diff options
author | Kevin Ryde <user42@zip.com.au> | 2001-05-17 01:08:05 +0200 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2001-05-17 01:08:05 +0200 |
commit | 60b7883c6c8c2a7ef56ea0dbbc86127d985dc34e (patch) | |
tree | 3035b1c82ccdbd0d442c090f5e7c2ee4dbbbf600 /mpf/set_dfl_prec.c | |
parent | 5540dca4d832ec301bb3dcfe9bf0cc4b4d4a45bb (diff) | |
download | gmp-60b7883c6c8c2a7ef56ea0dbbc86127d985dc34e.tar.gz |
* gmp-h.in (mpf_get_default_prec, mpf_get_prec, mpf_set_default_prec,
mpf_set_prec_raw): Provide "extern inline" versions, use __GMPF on the
macros.
* mpf/get_dfl_prc.c, mpf/get_prc.c, mpf/set_dfl_prc.c,
mpf/set_prc_raw.c: Get code from gmp.h using __GMP_FORCE.
Diffstat (limited to 'mpf/set_dfl_prec.c')
-rw-r--r-- | mpf/set_dfl_prec.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/mpf/set_dfl_prec.c b/mpf/set_dfl_prec.c index 826dff885..e5bae3bdf 100644 --- a/mpf/set_dfl_prec.c +++ b/mpf/set_dfl_prec.c @@ -19,13 +19,9 @@ along with the GNU MP 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. */ +#define __GMP_FORCE_mpf_set_default_prec 1 + #include "gmp.h" #include "gmp-impl.h" -mp_size_t __gmp_default_fp_limb_precision = MPF_BITS_TO_PREC (53); - -void -mpf_set_default_prec (unsigned long int prec_in_bits) -{ - __gmp_default_fp_limb_precision = MPF_BITS_TO_PREC (prec_in_bits); -} +mp_size_t __gmp_default_fp_limb_precision = __GMPF_BITS_TO_PREC (53); |