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