mpz_set_si loses long long value on Windows

Torbjörn Granlund tg at gmplib.org
Wed Jul 24 11:45:22 UTC 2019


Vincent Lefevre <vincent at vinc17.net> writes:

  On 2019-07-24 11:29:42 +0200, Torbjorn Granlund wrote:
  > The problem with MPFR's approach is that the library API depends on the
  > compiler.

  Yes, but note that this is also the case with GMP, for the
  formatted output functions. :)

Yikes!  I wasn't aware of that.  And this is code from 2001, so it's
been like that for a long while.

I suppose it is exceedingly rare that people use gmp_*printf* and
gmp_*scanf* for these fringe types.

  quad_t isn't even in C99.

Granted, but we do perform the required configure tests, so things will
compile.  It is just a issue about varying API.

I think we should require C99 for GMP 7.  We will make a 6.2 before
that.

-- 
Torbjörn
Please encrypt, key id 0xC8601622


More information about the gmp-bugs mailing list