Ciao, Il Mer, 14 Marzo 2018 7:10 pm, Niels Möller ha scritto: > "Marco Bodrato" <bodr...@mail.dm.unipi.it> writes:
>> #if defined(USE_FLOAT_H) >> #include <float.h> >> #endif > > This won't work well for mini-gmp. My idea was, if mini-gmp is used "as-is", it supports IEEE doubles. If some other double format is needed, the user needs to define USE_FLOAT_H, if it exists for the target arch, or define GMP_BITS_PER_DOUBLE with the required number of bits. >> #if defined(DBL_MANT_DIG) && FLT_RADIX == 2 >> #define GMP_BITS_PER_DOUBLE DBL_MANT_DIG >> #endif >> >> #if !defined(GMP_BITS_PER_DOUBLE) >> #define GMP_BITS_PER_DOUBLE (53) >> #endif > [...] for float.h, I think we could use it unconditionally > also in gmp. > > Patch below. It looks correct to me. float.h was defined by C99, right? One year ago we thought about requiring at least C99... This is a step towards that direction. Ĝis, m -- http://bodrato.it/ _______________________________________________ gmp-devel mailing list gmp-devel@gmplib.org https://gmplib.org/mailman/listinfo/gmp-devel