14b6a78b7SSimon Schubert /* mpf_set_default_prec -- 24b6a78b7SSimon Schubert 34b6a78b7SSimon Schubert Copyright 1993, 1994, 1995, 2001 Free Software Foundation, Inc. 44b6a78b7SSimon Schubert 54b6a78b7SSimon Schubert This file is part of the GNU MP Library. 64b6a78b7SSimon Schubert 74b6a78b7SSimon Schubert The GNU MP Library is free software; you can redistribute it and/or modify 84b6a78b7SSimon Schubert it under the terms of the GNU Lesser General Public License as published by 94b6a78b7SSimon Schubert the Free Software Foundation; either version 3 of the License, or (at your 104b6a78b7SSimon Schubert option) any later version. 114b6a78b7SSimon Schubert 124b6a78b7SSimon Schubert The GNU MP Library is distributed in the hope that it will be useful, but 134b6a78b7SSimon Schubert WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 144b6a78b7SSimon Schubert or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 154b6a78b7SSimon Schubert License for more details. 164b6a78b7SSimon Schubert 174b6a78b7SSimon Schubert You should have received a copy of the GNU Lesser General Public License 184b6a78b7SSimon Schubert along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 194b6a78b7SSimon Schubert 204b6a78b7SSimon Schubert #include "gmp.h" 214b6a78b7SSimon Schubert #include "gmp-impl.h" 224b6a78b7SSimon Schubert 234b6a78b7SSimon Schubert mp_size_t __gmp_default_fp_limb_precision = __GMPF_BITS_TO_PREC (53); 244b6a78b7SSimon Schubert 254b6a78b7SSimon Schubert void mpf_set_default_prec(mp_bitcnt_t prec_in_bits)26*d2d4b659SJohn Marinompf_set_default_prec (mp_bitcnt_t prec_in_bits) __GMP_NOTHROW 274b6a78b7SSimon Schubert { 284b6a78b7SSimon Schubert __gmp_default_fp_limb_precision = __GMPF_BITS_TO_PREC (prec_in_bits); 294b6a78b7SSimon Schubert } 30