diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2000-12-18 09:02:00 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2000-12-18 09:02:00 +0000 |
commit | 9c94b291ca1c5929ce7ca2927f7506045278cdc0 (patch) | |
tree | cb2b32a4711bcfd793f8a30fc60de441bc47ee6c /sqrt.c | |
parent | 177371d41c4d432af5863e7c053d3e6439e6283d (diff) | |
download | mpfr-9c94b291ca1c5929ce7ca2927f7506045278cdc0.tar.gz |
changed name of mpfr struct fields: _mp_d -> _mpfr_d
(to detect conflicts with mpf)
fixed a few problems in non-STDC headers
moved definitions of mpfr-impl.h to mpfr-test.h and created a real mpfr-impl.h
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@897 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'sqrt.c')
-rw-r--r-- | sqrt.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -23,8 +23,9 @@ MA 02111-1307, USA. */ #include <stdio.h> #include <stdlib.h> #include "gmp.h" -#include "mpfr.h" #include "gmp-impl.h" +#include "mpfr.h" +#include "mpfr-impl.h" /* #define DEBUG */ @@ -229,7 +230,7 @@ mpfr_sqrt (r, u, rnd_mode) if (cc) { mpn_rshift(rp, rp, rrsize, 1); rp[rrsize-1] |= (mp_limb_t) 1 << (BITS_PER_MP_LIMB-1); - r->_mp_exp++; + MPFR_EXP(r)++; } fin: |