summaryrefslogtreecommitdiff
path: root/mpf/set_dfl_prec.c
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2001-11-07 22:57:52 +0100
committerKevin Ryde <user42@zip.com.au>2001-11-07 22:57:52 +0100
commit8979cb56a5b7844a043e2d79e592e069fdcdfd72 (patch)
treed377d02f787907f9538ae122b514db89b5680e94 /mpf/set_dfl_prec.c
parentee03e1899ff0af936d5b6db67e9b3725aad73c19 (diff)
downloadgmp-8979cb56a5b7844a043e2d79e592e069fdcdfd72.tar.gz
* gmp-h.in, gmp-impl.h, mpf/abs.c, mpf/neg.c, mpf/get_prc.c,
mpf/get_dfl_prec.c, mpf/set_dfl_prec.c, mpf/set_prc_raw.c, mpf/set_si.c, mpf/set_ui.c, mpf/size.c: Revert mpf inlining, in order to leave open the possibility of keeping binary compatibility if mpf becomes mpfr.
Diffstat (limited to 'mpf/set_dfl_prec.c')
-rw-r--r--mpf/set_dfl_prec.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/mpf/set_dfl_prec.c b/mpf/set_dfl_prec.c
index e5bae3bdf..77434efb6 100644
--- a/mpf/set_dfl_prec.c
+++ b/mpf/set_dfl_prec.c
@@ -19,9 +19,13 @@ 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 = __GMPF_BITS_TO_PREC (53);
+
+void
+mpf_set_default_prec (unsigned long int prec_in_bits)
+{
+ __gmp_default_fp_limb_precision = __GMPF_BITS_TO_PREC (prec_in_bits);
+}