From 0cf5fc5ea4b5ed46b454d3bf3adc620d9fff2d32 Mon Sep 17 00:00:00 2001 From: hanrot Date: Wed, 9 Jun 1999 18:03:33 +0000 Subject: Initial revision git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2 280ebfd0-de03-0410-8827-d642c229c3f4 --- set_dfl_prec.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 set_dfl_prec.c (limited to 'set_dfl_prec.c') diff --git a/set_dfl_prec.c b/set_dfl_prec.c new file mode 100644 index 000000000..aa7b7b668 --- /dev/null +++ b/set_dfl_prec.c @@ -0,0 +1,16 @@ +#include "gmp.h" +#include "gmp-impl.h" + +/* default is 53 bits */ +mp_size_t __gmp_default_fp_bit_precision = 53; + +void +#if __STDC__ +mpfr_set_default_prec (unsigned long int prec_in_bits) +#else +mpfr_set_default_prec (prec_in_bits) + unsigned long int prec_in_bits; +#endif +{ + __gmp_default_fp_bit_precision = prec_in_bits; +} -- cgit v1.2.1