summaryrefslogtreecommitdiff
path: root/print_raw.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2000-10-26 11:59:59 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2000-10-26 11:59:59 +0000
commitda4b19c01ec0e27d42071d294e29fc56e1a1b16a (patch)
tree393496f9c6cc54d9bcde0fc0d77691fdcfdf255a /print_raw.c
parent33336e9a85f1ae242191e1b2286cded95f11362b (diff)
downloadmpfr-da4b19c01ec0e27d42071d294e29fc56e1a1b16a.tar.gz
protected all macros: xxx -> MPFR_xxx
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@786 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'print_raw.c')
-rw-r--r--print_raw.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/print_raw.c b/print_raw.c
index b6e680a8e..77821a61c 100644
--- a/print_raw.c
+++ b/print_raw.c
@@ -36,9 +36,9 @@ mpfr_get_str_raw(digit_ptr, x)
{
mp_limb_t *mx, wd, t; long ex, sx, k, l, p;
- mx = MANT(x);
- ex = EXP(x);
- p = PREC(x);
+ mx = MPFR_MANT(x);
+ ex = MPFR_EXP(x);
+ p = MPFR_PREC(x);
if (MPFR_SIGN(x) < 0) { *digit_ptr = '-'; digit_ptr++; }
sprintf(digit_ptr, "0."); digit_ptr += 2;
@@ -71,21 +71,21 @@ mpfr_print_raw(x)
{
char *str;
- if (FLAG_NAN(x)) printf("NaN");
- else if (!NOTZERO(x)) printf("0");
+ if (MPFR_IS_NAN(x)) printf("NaN");
+ else if (!MPFR_NOTZERO(x)) printf("0");
else {
/* 3 char for sign + 0 + binary point
- + ABSSIZE(x) * BITS_PER_MP_LIMB for mantissa
+ + MPFR_ABSSIZE(x) * BITS_PER_MP_LIMB for mantissa
+ 2 for brackets in mantissa
+ 1 for 'E'
+ 11 for exponent (including sign)
- = 17 + ABSSIZE(x) * BITS_PER_MP_LIMB
+ = 17 + MPFR_ABSSIZE(x) * BITS_PER_MP_LIMB
*/
- str = (char *) (*_mp_allocate_func) ((17 + ABSSIZE(x) * BITS_PER_MP_LIMB)*sizeof(char));
+ str = (char *) (*_mp_allocate_func) ((17 + MPFR_ABSSIZE(x) * BITS_PER_MP_LIMB)*sizeof(char));
mpfr_get_str_raw(str, x);
printf("%s", str);
- (*_mp_free_func) (str, (17 + ABSSIZE(x) * BITS_PER_MP_LIMB)*sizeof(char));
+ (*_mp_free_func) (str, (17 + MPFR_ABSSIZE(x) * BITS_PER_MP_LIMB)*sizeof(char));
}
}