153723Sbillf/* mpf_get_default_prec -- return default precision in bits.
253723Sbillf
398766SmarkmCopyright 2001 Free Software Foundation, Inc.
498766Smarkm
553723SbillfThis file is part of the GNU MP Library.
698766Smarkm
798766SmarkmThe GNU MP Library is free software; you can redistribute it and/or modify
898766Smarkmit under the terms of the GNU Lesser General Public License as published by
998766Smarkmthe Free Software Foundation; either version 3 of the License, or (at your
1098766Smarkmoption) any later version.
1198766Smarkm
1298766SmarkmThe GNU MP Library is distributed in the hope that it will be useful, but
1398766SmarkmWITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
1498766Smarkmor FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
1598766SmarkmLicense for more details.
1698766Smarkm
1798766SmarkmYou should have received a copy of the GNU Lesser General Public License
1875142Sbmahalong with the GNU MP Library.  If not, see http://www.gnu.org/licenses/.  */
1975142Sbmah
2075142Sbmah#include "gmp.h"
2153723Sbillf#include "gmp-impl.h"
22
23
24mp_bitcnt_t
25mpf_get_default_prec (void)
26{
27  return __GMPF_PREC_TO_BITS (__gmp_default_fp_limb_precision);
28}
29