emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] feature/bignum f966753 1/2: Do not use GMP_NUMB_BITS


From: Tom Tromey
Subject: [Emacs-diffs] feature/bignum f966753 1/2: Do not use GMP_NUMB_BITS
Date: Thu, 9 Aug 2018 15:29:29 -0400 (EDT)

branch: feature/bignum
commit f966753727741883c5d81a288ce5c20cebe3bad0
Author: Andy Moreton <address@hidden>
Commit: Tom Tromey <address@hidden>

    Do not use GMP_NUMB_BITS
    
    * src/alloc.c (make_number): Use mp_bits_per_limb, not GMP_NUMB_BITS.
---
 src/alloc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/alloc.c b/src/alloc.c
index 1504d79..a8bc55b 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -3830,7 +3830,7 @@ make_number (mpz_t value)
           for (i = 0; i < limbs; i++)
             {
               mp_limb_t limb = mpz_getlimbn (value, i);
-              v |= (EMACS_INT) ((EMACS_UINT) limb << (i * GMP_NUMB_BITS));
+              v |= (EMACS_INT) ((EMACS_UINT) limb << (i * mp_bits_per_limb));
             }
           if (sign < 0)
             v = -v;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]