mpz_get_ld

Torbjorn Granlund tg at gmplib.org
Sat Jun 23 18:58:05 CEST 2012


Marc Glisse <marc.glisse at inria.fr> writes:

  On Tue, 19 Jun 2012, Torbjorn Granlund wrote:
  
  > I don't think we require C99 for GMP, only C89.
  > The ldexpl function was introduced with C99.
  
  Would mpz_get_ld become acceptable with an appropriate autoconf test
  for ldexpl and a silly loop as a fallback?
  
I think we should instead do it similarly to mpz_get_d,
i.e., dig out the bits ourselves.

(We have made sure user code using GMP will not depend on libm via GMP.
I think that is a convenience we should try to maintain.)

-- 
Torbjörn


More information about the gmp-devel mailing list