[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bignum branch
From: |
Paul Eggert |
Subject: |
Re: bignum branch |
Date: |
Wed, 18 Jul 2018 00:39:11 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 |
Eli Zaretskii wrote:
Could you please elaborate and perhaps show an example or two? I
don't think I understand what change you are proposing to make, and
how will that help debugging.
The patch to mini-gmp.h is simple:
--- a/mini-gmp/mini-gmp.h Tue Jul 03 11:16:06 2018 +0200
+++ b/mini-gmp/mini-gmp.h Wed Jul 18 00:35:27 2018 -0700
@@ -53,9 +53,11 @@
void *(**) (void *, size_t, size_t),
void (**) (void *, size_t));
+#ifndef mp_limb_t
typedef unsigned long mp_limb_t;
typedef long mp_size_t;
typedef unsigned long mp_bitcnt_t;
+#endif
typedef mp_limb_t *mp_ptr;
typedef const mp_limb_t *mp_srcptr;
When debugging, Emacs would #define mp_limb_t, mp_size_t, and mp_bitcnt_t to
larger and/or smaller types than typical for the current platform before
including mini-gmp.h, to check for portability gotchas on other platforms, and
to improve performance on platforms lacking libgmp.
- Re: bignum branch, (continued)
- Re: bignum branch, Paul Eggert, 2018/07/17
- Re: bignum branch, Eli Zaretskii, 2018/07/17
- Re: bignum branch, Paul Eggert, 2018/07/17
- Re: bignum branch, Eli Zaretskii, 2018/07/17
- Re: bignum branch, Paul Eggert, 2018/07/17
- Re: bignum branch, Eli Zaretskii, 2018/07/17
- Re: bignum branch, Paul Eggert, 2018/07/17
- Re: bignum branch, Eli Zaretskii, 2018/07/17
- Re: bignum branch, Paul Eggert, 2018/07/17
- Re: bignum branch, Eli Zaretskii, 2018/07/17
- Re: bignum branch,
Paul Eggert <=
- Re: bignum branch, Andy Moreton, 2018/07/18
- Re: bignum branch, Paul Eggert, 2018/07/18
- Re: bignum branch, Clément Pit-Claudel, 2018/07/18
- Re: bignum branch, Stefan Monnier, 2018/07/18
- Re: bignum branch, Clément Pit-Claudel, 2018/07/18
- Re: bignum branch, Andy Moreton, 2018/07/18
- Re: bignum branch, Achim Gratz, 2018/07/18
- Re: bignum branch, Stefan Monnier, 2018/07/18
- Re: bignum branch, Eli Zaretskii, 2018/07/18
- bignum branch, Paul Eggert, 2018/07/19