Re: TODO for 5.2 v3

2014-01-15 Thread Marc Glisse
On Wed, 15 Jan 2014, Niels Möller wrote: Torbjorn Granlund t...@gmplib.org writes: The volatile qualifier makes sure the number of memory reads and memory writes remain unchanged from the source code. Question is, when is it useful for our purposes? First example, mpn_sec_add_1: mp_limb_t

mini-gmp

2014-01-15 Thread Zimmermann Paul
Hi, I tried to compile MPFR with mini-gmp. I needed to do a few changes: Changes in mini-gmp.c: 1) I had to add #define mpz_init __gmpz_init, because in MPFR configure we check for __gmpz_init 2) I had to add a line: unsigned int mp_bits_per_limb = GMP_NUMB_BITS; 3) I had to

Re: mini-gmp

2014-01-15 Thread Vincent Lefevre
On 2014-01-15 23:54:27 +0100, Vincent Lefevre wrote: On 2014-01-15 23:23:28 +0100, Niels Möller wrote: Zimmermann Paul paul.zimmerm...@inria.fr writes: #define GMP_NUMB_BITS 64 It would make sense to have this (and GMP_LIMB_BITS) in mini-gmp.h. But the definition (which must be