summaryrefslogtreecommitdiff
path: root/eq.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2000-12-18 09:02:00 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2000-12-18 09:02:00 +0000
commit9c94b291ca1c5929ce7ca2927f7506045278cdc0 (patch)
treecb2b32a4711bcfd793f8a30fc60de441bc47ee6c /eq.c
parent177371d41c4d432af5863e7c053d3e6439e6283d (diff)
downloadmpfr-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 'eq.c')
-rw-r--r--eq.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/eq.c b/eq.c
index 4b5c4a2a2..95b04a986 100644
--- a/eq.c
+++ b/eq.c
@@ -23,8 +23,9 @@ MA 02111-1307, USA. */
#include <stdio.h>
#include "gmp.h"
-#include "mpfr.h"
#include "gmp-impl.h"
+#include "mpfr.h"
+#include "mpfr-impl.h"
int
#if __STDC__
@@ -41,8 +42,8 @@ mpfr_eq (u, v, n_bits)
mp_exp_t uexp, vexp;
int usign, k;
- uexp = u->_mp_exp;
- vexp = v->_mp_exp;
+ uexp = MPFR_EXP(u);
+ vexp = MPFR_EXP(v);
usize = (MPFR_PREC(u)-1)/BITS_PER_MP_LIMB + 1;
vsize = (MPFR_PREC(v)-1)/BITS_PER_MP_LIMB + 1;