diff options
author | Kevin Ryde <user42@zip.com.au> | 2001-12-22 00:33:39 +0100 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2001-12-22 00:33:39 +0100 |
commit | e620fe48bf0de33fa6576bdaad8dd87f842bf07a (patch) | |
tree | c9a6d97543db4513aa6a25229e8321f962170675 /mpz/out_raw.c | |
parent | 53d4972e79c4eeb49e1abfd9b2deb13b6e6610ed (diff) | |
download | gmp-e620fe48bf0de33fa6576bdaad8dd87f842bf07a.tar.gz |
More of:
* mpz/inp_raw.c, mpz/out_raw.c: Rewrite.
Diffstat (limited to 'mpz/out_raw.c')
-rw-r--r-- | mpz/out_raw.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mpz/out_raw.c b/mpz/out_raw.c index dc5591e5a..61ac6c01f 100644 --- a/mpz/out_raw.c +++ b/mpz/out_raw.c @@ -81,6 +81,8 @@ MA 02111-1307, USA. */ #endif +#define ROUNDUP ROUND_UP_MULTIPLE ((unsigned) 4, BYTES_PER_MP_LIMB) + size_t mpz_out_raw (FILE *fp, mpz_srcptr x) { @@ -94,10 +96,10 @@ mpz_out_raw (FILE *fp, mpz_srcptr x) xsize = SIZ(x); abs_xsize = ABS (xsize); bytes = BYTES_PER_MP_LIMB * abs_xsize; - tsize = ROUND_UP_MULTIPLE (4, BYTES_PER_MP_LIMB) + bytes; + tsize = ROUND_UP_MULTIPLE ((unsigned) 4, BYTES_PER_MP_LIMB) + bytes; tp = (*__gmp_allocate_func) (tsize); - bp = tp + ROUND_UP_MULTIPLE (4, BYTES_PER_MP_LIMB); + bp = tp + ROUND_UP_MULTIPLE ((unsigned) 4, BYTES_PER_MP_LIMB); if (bytes != 0) { |